Changeset c039ebbe82 in tspsg


Ignore:
Timestamp:
Mar 31, 2013, 9:29:14 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.4.170-beta2-bb10
Children:
bd4553fa91
Parents:
628500a5d6
git-author:
Oleksii Serdiuk <contacts@…> (03/31/13 21:29:14)
git-committer:
Oleksii Serdiuk <contacts@…> (03/31/13 21:46:10)
Message:

Use "/accounts/1000/shared" folder as default in open/save dialogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    r628500a5d6 rc039ebbe82  
    201201QString file;
    202202    if ((fileName == tr("Untitled") + ".tspt") && settings->value("SaveLastUsed", DEF_SAVE_LAST_USED).toBool())
     203#ifdef Q_OS_BLACKBERRY
     204        file = settings->value(OS"/LastUsed/TaskLoadPath", "/accounts/1000/shared").toString();
     205#else
    203206        file = settings->value(OS"/LastUsed/TaskLoadPath").toString();
     207#endif
    204208    else
    205209        file = QFileInfo(fileName).path();
     
    242246    if (selectedFile.isEmpty()) {
    243247        if (settings->value("SaveLastUsed", DEF_SAVE_LAST_USED).toBool()) {
     248#ifdef Q_OS_BLACKBERRY
     249            selectedFile = settings->value(OS"/LastUsed/SolutionSavePath", "/accounts/1000/shared").toString();
     250#else
    244251            selectedFile = settings->value(OS"/LastUsed/SolutionSavePath").toString();
     252#endif
    245253        }
    246254    } else
     
    16281636QString file;
    16291637    if ((fileName == tr("Untitled") + ".tspt") && settings->value("SaveLastUsed", DEF_SAVE_LAST_USED).toBool()) {
     1638#ifdef Q_OS_BLACKBERRY
     1639        file = settings->value(OS"/LastUsed/TaskSavePath", "/accounts/1000/shared").toString();
     1640#else
    16301641        file = settings->value(OS"/LastUsed/TaskSavePath").toString();
     1642#endif
    16311643        if (!file.isEmpty())
    16321644            file.append("/");
Note: See TracChangeset for help on using the changeset viewer.