1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

[Windows] Fixed PROFILEDIR when using Qt4.

This commit is contained in:
S. Razi Alavizadeh 2014-02-13 17:23:20 +03:30
parent fa091d77f2
commit b880a920ff

View File

@ -118,6 +118,10 @@ MainApplication::MainApplication(int &argc, char** argv)
, m_macDockMenu(0)
#endif
{
setApplicationName("QupZilla");
setApplicationVersion(QupZilla::VERSION);
setOrganizationDomain("qupzilla");
#if defined(QZ_WS_X11) && !defined(NO_SYSTEM_DATAPATH)
DATADIR = USE_DATADIR;
#else
@ -197,7 +201,7 @@ MainApplication::MainApplication(int &argc, char** argv)
}
else {
#if defined(Q_OS_WIN) || defined(Q_OS_OS2)
// Use %APPDATA%/qupzilla as PROFILEDIR on Windows
// Use %LOCALAPPDATA%/qupzilla as PROFILEDIR on Windows
#if QT_VERSION < 0x050000
QString dataLocation = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
#else
@ -266,9 +270,6 @@ MainApplication::MainApplication(int &argc, char** argv)
setQuitOnLastWindowClosed(true);
#endif
setApplicationName("QupZilla");
setApplicationVersion(QupZilla::VERSION);
setOrganizationDomain("qupzilla");
QDesktopServices::setUrlHandler("http", this, "addNewTab");
QDesktopServices::setUrlHandler("ftp", this, "addNewTab");