summaryrefslogtreecommitdiffstats
path: root/krandr
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-17 14:54:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-17 14:54:41 -0600
commitb03909fd4ccfb618957e16cce93e7634dbe46386 (patch)
treedcbec1120496392b787a9c23e0dbc176f8dc5138 /krandr
parentc1b662326338d960264edba69fcb4141073f97c7 (diff)
downloadtdelibs-b03909fd4ccfb618957e16cce93e7634dbe46386.tar.gz
tdelibs-b03909fd4ccfb618957e16cce93e7634dbe46386.zip
Fix krandr crash under certain circumstances
Diffstat (limited to 'krandr')
-rw-r--r--krandr/randr.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/krandr/randr.cpp b/krandr/randr.cpp
index 0300801ca..f1b1aae21 100644
--- a/krandr/randr.cpp
+++ b/krandr/randr.cpp
@@ -829,7 +829,13 @@ KDE_EXPORT void RandRDisplay::applyProposed(bool confirm)
KDE_EXPORT bool RandRDisplay::showTestConfigurationDialog()
{
- return screen(0)->showTestConfigurationDialog();
+ RandRScreen* firstScreen = screen(0);
+ if (firstScreen) {
+ return firstScreen->showTestConfigurationDialog();
+ }
+ else {
+ return false;
+ }
}
KDE_EXPORT bool RandRScreen::showTestConfigurationDialog()