From ecec41d6471408c6d4e5de4e07fa167bc38103dc Mon Sep 17 00:00:00 2001 From: nowrep Date: Thu, 5 Apr 2012 14:26:44 +0200 Subject: [PATCH] Correct release of version 1.2.0 --- src/lib/3rdparty/qtwin.cpp | 2 +- src/lib/app/mainapplication.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/3rdparty/qtwin.cpp b/src/lib/3rdparty/qtwin.cpp index b7272e4dc..8d25f432c 100644 --- a/src/lib/3rdparty/qtwin.cpp +++ b/src/lib/3rdparty/qtwin.cpp @@ -324,7 +324,7 @@ void QtWin::populateFrequentSites(IObjectCollection* collection, const QString & HistoryModel* historyModel = mApp->history(); QList mostList = historyModel->mostVisited(6); foreach(const HistoryEntry & entry, mostList) - collection->AddObject(CreateShellLink(entry.title, entry.url.toString(), appPath, " " + entry.url.toEncoded(), appPath, 1)); + collection->AddObject(CreateShellLink(entry.title, entry.url.toString(), appPath, QString(" " + entry.url.toEncoded()), appPath, 1)); collection->AddObject(CreateShellLink("", "", "", "", "", 0)); //Spacer } diff --git a/src/lib/app/mainapplication.cpp b/src/lib/app/mainapplication.cpp index 01ddad2b7..f4a604686 100644 --- a/src/lib/app/mainapplication.cpp +++ b/src/lib/app/mainapplication.cpp @@ -876,6 +876,10 @@ bool MainApplication::checkSettingsDir() QFile(PROFILEDIR + "profiles/default/browsedata.db").remove(); QFile(":data/browsedata.db").copy(PROFILEDIR + "profiles/default/browsedata.db"); QFile(PROFILEDIR + "profiles/default/browsedata.db").setPermissions(QFile::ReadUser | QFile::WriteUser); + QFile versionFile(PROFILEDIR + "profiles/default/version"); + versionFile.open(QFile::WriteOnly); + versionFile.write(QupZilla::VERSION.toUtf8()); + versionFile.close(); return dir.isReadable(); }