summaryrefslogtreecommitdiffstats
path: root/systemsettings/mainwindow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-06-15 13:56:00 -0500
committerTimothy Pearson <[email protected]>2012-06-15 13:56:00 -0500
commit2348e07447e6e4c576e4f33750b2de40620d54ed (patch)
treef4f77d5e63e51ffee24b76a53c8513c2dd164be9 /systemsettings/mainwindow.cpp
parent053af2ec3651e699f73d8d4a881c008d4c7eeb9b (diff)
downloadtde-systemsettings-2348e07447e6e4c576e4f33750b2de40620d54ed.tar.gz
tde-systemsettings-2348e07447e6e4c576e4f33750b2de40620d54ed.zip
Fix crash when no modules are available
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 a06c69c..866af19 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()