1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02: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) , m_macDockMenu(0)
#endif #endif
{ {
setApplicationName("QupZilla");
setApplicationVersion(QupZilla::VERSION);
setOrganizationDomain("qupzilla");
#if defined(QZ_WS_X11) && !defined(NO_SYSTEM_DATAPATH) #if defined(QZ_WS_X11) && !defined(NO_SYSTEM_DATAPATH)
DATADIR = USE_DATADIR; DATADIR = USE_DATADIR;
#else #else
@ -197,7 +201,7 @@ MainApplication::MainApplication(int &argc, char** argv)
} }
else { else {
#if defined(Q_OS_WIN) || defined(Q_OS_OS2) #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 #if QT_VERSION < 0x050000
QString dataLocation = QDesktopServices::storageLocation(QDesktopServices::DataLocation); QString dataLocation = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
#else #else
@ -266,9 +270,6 @@ MainApplication::MainApplication(int &argc, char** argv)
setQuitOnLastWindowClosed(true); setQuitOnLastWindowClosed(true);
#endif #endif
setApplicationName("QupZilla");
setApplicationVersion(QupZilla::VERSION);
setOrganizationDomain("qupzilla");
QDesktopServices::setUrlHandler("http", this, "addNewTab"); QDesktopServices::setUrlHandler("http", this, "addNewTab");
QDesktopServices::setUrlHandler("ftp", this, "addNewTab"); QDesktopServices::setUrlHandler("ftp", this, "addNewTab");