summaryrefslogtreecommitdiffstats
path: root/systemsettings/mainwindow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-06-15 13:56:00 -0500
committerSlávek Banko <[email protected]>2012-08-02 00:18:38 +0200
commite177675f1f719a5ca32e8ed672b0775f1995b59f (patch)
tree56a4e5c32cc4025523c581981e81e201cb9e8757 /systemsettings/mainwindow.cpp
parentbd140e2d7e4c2db192f4285fb56a1122db5fc0c9 (diff)
downloadtde-systemsettings-e177675f1f719a5ca32e8ed672b0775f1995b59f.tar.gz
tde-systemsettings-e177675f1f719a5ca32e8ed672b0775f1995b59f.zip
Fix crash when no modules are available
(cherry picked from commit 2348e07447e6e4c576e4f33750b2de40620d54ed)
Diffstat (limited to 'systemsettings/mainwindow.cpp')
-rw-r--r--systemsettings/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/systemsettings/mainwindow.cpp b/systemsettings/mainwindow.cpp
index a757577..b8fe24f 100644
--- a/systemsettings/mainwindow.cpp
+++ b/systemsettings/mainwindow.cpp
@@ -180,7 +180,9 @@ void MainWindow::buildActions()
kdDebug() << "relpath is :" << group->relPath() << endl;
}
}
- pageActions.at(0)->setChecked(true);
+ if (pageActions.at(0)) {
+ pageActions.at(0)->setChecked(true);
+ }
}
void MainWindow::aboutCurrentModule()