Changeset 387:050b6bd4baed in SMSSender


Ignore:
Timestamp:
Apr 29, 2014 10:34:25 AM (4 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
separation-frontend-backend
Message:
  • Adjusts the settings search path since the storageLocation of Qt already contains the application- and organization names.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/gui/persistence/persistencefactory.cpp

    r372 r387  
    8282#ifndef QT_DEBUG
    8383    if (!settingsPath.exists("data.db")) {
    84         QString path = QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/gorrion/SMSSender/";
    85         settingsPath.mkpath(path);
     84        Q_ASSERT(!QCoreApplication::applicationName().isEmpty());
     85        QString path = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
     86        settingsPath.mkpath(path); // Contains the application name.
    8687        settingsPath.setPath(path);
    8788    }
Note: See TracChangeset for help on using the changeset viewer.