summaryrefslogtreecommitdiffstats
path: root/src/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r--src/dialog.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp
index fb6b95e..10ebe22 100644
--- a/src/dialog.cpp
+++ b/src/dialog.cpp
@@ -145,6 +145,12 @@ void Dialog::on_treeView_doubleClicked(const QModelIndex& index)
setenv("VMCHOOSER_ADMIN_MODE", "FALSE", 1);
}
+ if (ui->chkNoScreenSaver->isChecked()) {
+ setenv("VMCHOOSER_DISABLE_SCREENSAVER", "TRUE", 1);
+ } else {
+ setenv("VMCHOOSER_DISABLE_SCREENSAVER", "FALSE", 1);
+ }
+
// Run session
if (s->run()) {
// Run session start script if the session could be initialized successfully
@@ -419,7 +425,7 @@ void Dialog::onCenterTimer() {
if (autoQuit_ == 0) {
QCoreApplication::instance()->exit(0);
} else if (autoQuit_ < 60) {
- ui->lblAutoQuit->setText(this->trUtf8("Auto logout in %1").arg(autoQuit_));
+ ui->lblAutoQuit->setText(trUtf8("Auto logout in %1").arg(autoQuit_));
ui->lblAutoQuit->show();
} else if (ui->lblAutoQuit->isVisible()) {
ui->lblAutoQuit->hide();