From e177675f1f719a5ca32e8ed672b0775f1995b59f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 15 Jun 2012 13:56:00 -0500 Subject: Fix crash when no modules are available (cherry picked from commit 2348e07447e6e4c576e4f33750b2de40620d54ed) --- systemsettings/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'systemsettings/mainwindow.cpp') 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() -- cgit v1.2.1