diff options
author | Sebastian Schmelzer | 2011-05-12 18:52:30 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2011-05-12 18:52:30 +0200 |
commit | 6da16aa23538d7d35ec0f0cf24465474537d74fa (patch) | |
tree | 474db93bbd0a89c0f9428bd6235508f917f2eb26 /src/main.cpp | |
parent | switch default theme to openslx (diff) | |
download | vmchooser-6da16aa23538d7d35ec0f0cf24465474537d74fa.tar.gz vmchooser-6da16aa23538d7d35ec0f0cf24465474537d74fa.tar.xz vmchooser-6da16aa23538d7d35ec0f0cf24465474537d74fa.zip |
make --pvs option configurable via vmchooser.conf
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1fe6401..f5853be 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -183,7 +183,14 @@ int main(int argc, char *argv[]) { w.setTheme(); w.setWindowFlags(Qt::FramelessWindowHint); - if (cmdOptions.contains("pvs")) + if (cmdOptions.contains("pvs")) { + pvsEnabled = true; + } else if (settings.contains("pvs")) { + if (settings.value("pvs").toInt() == 1) + pvsEnabled = true; + } + + if ( pvsEnabled ) w.showSettingsPVS(); w.resize(width, height); |