Prevent recursive loop if XRandR returns a warning or error message during application of settings outside of Settings Test mode

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1257816 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 01037adf8e
commit 10868e2434

@ -633,6 +633,7 @@ bool KRandrSimpleAPI::applySystemwideDisplayConfiguration(TQPtrList<SingleScreen
TQString xrandr_command_output = exec(command.ascii()); TQString xrandr_command_output = exec(command.ascii());
xrandr_command_output = xrandr_command_output.stripWhiteSpace(); xrandr_command_output = xrandr_command_output.stripWhiteSpace();
if (test) {
if (xrandr_command_output != "") { if (xrandr_command_output != "") {
applySystemwideDisplayConfiguration(oldconfig, FALSE, kde_confdir); applySystemwideDisplayConfiguration(oldconfig, FALSE, kde_confdir);
accepted = false; accepted = false;
@ -640,6 +641,7 @@ bool KRandrSimpleAPI::applySystemwideDisplayConfiguration(TQPtrList<SingleScreen
KMessageBox::sorry(0, xrandr_command_output, i18n("XRandR encountered a problem")); KMessageBox::sorry(0, xrandr_command_output, i18n("XRandR encountered a problem"));
return accepted; return accepted;
} }
}
// HACK // HACK
// This is needed because Qt does not properly generate screen // This is needed because Qt does not properly generate screen

Loading…
Cancel
Save