summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--krandr/libkrandr.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/krandr/libkrandr.cc b/krandr/libkrandr.cc
index c5ec9907e..86f8e6bd0 100644
--- a/krandr/libkrandr.cc
+++ b/krandr/libkrandr.cc
@@ -633,12 +633,14 @@ bool KRandrSimpleAPI::applySystemwideDisplayConfiguration(TQPtrList<SingleScreen
TQString xrandr_command_output = exec(command.ascii());
xrandr_command_output = xrandr_command_output.stripWhiteSpace();
- if (xrandr_command_output != "") {
- applySystemwideDisplayConfiguration(oldconfig, FALSE, kde_confdir);
- accepted = false;
- destroyScreenInformationObject(oldconfig);
- KMessageBox::sorry(0, xrandr_command_output, i18n("XRandR encountered a problem"));
- return accepted;
+ if (test) {
+ if (xrandr_command_output != "") {
+ applySystemwideDisplayConfiguration(oldconfig, FALSE, kde_confdir);
+ accepted = false;
+ destroyScreenInformationObject(oldconfig);
+ KMessageBox::sorry(0, xrandr_command_output, i18n("XRandR encountered a problem"));
+ return accepted;
+ }
}
// HACK