summaryrefslogtreecommitdiff
path: root/src/lockwidget.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-31 07:37:24 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:45:02 -0500
commitada2ac0cb5d0ef2039ce55794928c4d05255ed65 (patch)
tree9f2406c3beac8c55db10b4420bc28ed544186a01 /src/lockwidget.cpp
parent72dd230cdc60e74446caceb5cfb4c6d32e4f6f68 (diff)
removed redundant checkBinary(), which used to check for non existing binaries, that's handled when spawning
removed useless checkEnvironment(), which checked for EventLog removed CREATE_BREAKAWAY_FROM_JOB from CreateProcess() calls, didn't do anything fixed setFromFileOrExecutable() when running just a filename that's not an executable name split run() fixed lock widget being disabled when running without a ui
Diffstat (limited to 'src/lockwidget.cpp')
-rw-r--r--src/lockwidget.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lockwidget.cpp b/src/lockwidget.cpp
index bbffd390..35d51dab 100644
--- a/src/lockwidget.cpp
+++ b/src/lockwidget.cpp
@@ -229,10 +229,14 @@ void LockWidget::disableAll()
}
if (auto* d=dynamic_cast<QDialog*>(w)) {
- // no central widget, just disable the children, except for the overlay
- for (auto* child : findChildrenImmediate<QWidget*>(d)) {
- if (child != m_overlay.get()) {
- disable(child);
+ // don't disable stuff if this dialog is the overlay, which happens when
+ // there's no ui
+ if (d != m_overlay.get()) {
+ // no central widget, just disable the children, except for the overlay
+ for (auto* child : findChildrenImmediate<QWidget*>(d)) {
+ if (child != m_overlay.get()) {
+ disable(child);
+ }
}
}
}