Fix crash when no modules are available

(cherry picked from commit 2348e07447)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent bd140e2d7e
commit e177675f1f

@ -28,7 +28,7 @@
#include "moduleiconitem.h" #include "moduleiconitem.h"
KcmSearch::KcmSearch( TQPtrList<ModulesView> *moduleViewList, TQWidget *parent, const char *name ) KcmSearch::KcmSearch( TQPtrList<ModulesView> *moduleViewList, TQWidget *parent, const char *name )
: KIconViewSearchLine(parent, moduleViewList->at(0)->groups[0], name){ : KIconViewSearchLine(parent, (moduleViewList->at(0))?moduleViewList->at(0)->groups[0]:NULL, name){
this->moduleViewList = moduleViewList; this->moduleViewList = moduleViewList;
} }

@ -180,7 +180,9 @@ void MainWindow::buildActions()
kdDebug() << "relpath is :" << group->relPath() << endl; kdDebug() << "relpath is :" << group->relPath() << endl;
} }
} }
if (pageActions.at(0)) {
pageActions.at(0)->setChecked(true); pageActions.at(0)->setChecked(true);
}
} }
void MainWindow::aboutCurrentModule() void MainWindow::aboutCurrentModule()

Loading…
Cancel
Save