]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/toolbar.cpp
Qt: toolbar-profile, provide 4 profiles, one being close to 0.8.6 interface, the...
[vlc] / modules / gui / qt4 / dialogs / toolbar.cpp
index ca67c1b5b6e31fff328f6a193bea27fe7183cfa2..8a3bc738d81a3721be4c3564e2c824cad07274a3 100644 (file)
@@ -164,6 +164,18 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
                                getSettings()->value( "Value" ).toString() );
     }
     getSettings()->endArray();
+
+    /* Load defaults ones if we have no combos */
+    /* We could decide that we load defaults on first launch of the dialog
+       or when the combo is back to 0. I choose the second solution, because some clueless
+       user might hit on delete a bit too much, but discussion is opened. -- jb */
+    if( i_size == 0 )
+    {
+        profileCombo->addItem( PROFILE_NAME_1, QString( VALUE_1 ) );
+        profileCombo->addItem( PROFILE_NAME_2, QString( VALUE_2 ) );
+        profileCombo->addItem( PROFILE_NAME_3, QString( VALUE_3 ) );
+        profileCombo->addItem( PROFILE_NAME_4, QString( VALUE_4 ) );
+    }
     profileCombo->setCurrentIndex( -1 );
 
     /* Buttons */