diff options
author | Nils Schwabe | 2014-03-24 14:59:05 +0100 |
---|---|---|
committer | Nils Schwabe | 2014-03-24 14:59:05 +0100 |
commit | 37e2f2292981bf6227482f762db15b86e42d089f (patch) | |
tree | 61a98fe401aa985b5194972812d14dec5ed008bc /src/main.cpp | |
parent | added help and news box (diff) | |
download | vmchooser2-37e2f2292981bf6227482f762db15b86e42d089f.tar.gz vmchooser2-37e2f2292981bf6227482f762db15b86e42d089f.tar.xz vmchooser2-37e2f2292981bf6227482f762db15b86e42d089f.zip |
added choosersettings which remember the last selected session
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 86deb3f..722f80a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,10 +15,10 @@ #include "command_line_options.h" #include "dialog.h" #include "globals.h" -#include "save_restore_session.h" #include "vsession.h" #include "xsession.h" #include "httpxmldownloader.h" +#include "choosersettings.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); @@ -105,7 +105,7 @@ int main(int argc, char *argv[]) { } else if (settings.contains("default")) { defaultSession = settings.value("default").toString(); } else { - defaultSession = readSessionName(); + defaultSession = ChooserSettings::getSetting("last-session"); } if (cmdOptions.contains("path")) { |