summaryrefslogtreecommitdiffstats
path: root/krandr/randr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krandr/randr.cpp')
-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()