phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonypluginview.cpp
changeset 78 baacf668fe89
parent 60 1eef62f5c541
--- a/phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonypluginview.cpp	Mon Oct 04 16:06:10 2010 +0300
+++ b/phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonypluginview.cpp	Fri Oct 15 12:58:46 2010 +0300
@@ -109,7 +109,7 @@
         CpSettingFormItemData* expandedItem(NULL);
         foreach (QVariant var, params){
             items.append(groupItemFromPlugin(var.toString()));
-            if(!expanded){
+            if (!expanded && !items.isEmpty()) {
                 expandedItem = items.last();
                 expanded = true;
             }