diff options
author | Timothy Pearson <[email protected]> | 2012-06-15 13:56:00 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-06-15 13:56:00 -0500 |
commit | 2348e07447e6e4c576e4f33750b2de40620d54ed (patch) | |
tree | f4f77d5e63e51ffee24b76a53c8513c2dd164be9 /systemsettings/kcmsearch.cpp | |
parent | 053af2ec3651e699f73d8d4a881c008d4c7eeb9b (diff) | |
download | tde-systemsettings-2348e07447e6e4c576e4f33750b2de40620d54ed.tar.gz tde-systemsettings-2348e07447e6e4c576e4f33750b2de40620d54ed.zip |
Fix crash when no modules are available
Diffstat (limited to 'systemsettings/kcmsearch.cpp')
-rw-r--r-- | systemsettings/kcmsearch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/systemsettings/kcmsearch.cpp b/systemsettings/kcmsearch.cpp index 6f36c63..8cfb319 100644 --- a/systemsettings/kcmsearch.cpp +++ b/systemsettings/kcmsearch.cpp @@ -28,7 +28,7 @@ #include "moduleiconitem.h" 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; } |