Qt4- Playlist Model. Save the showColumn flags in the configuration ONLY during distr...
[vlc.git] / modules / gui / qt4 / components / playlist / playlist_model.cpp
index 7802f38..994b39b 100644 (file)
@@ -98,6 +98,8 @@ PLModel::PLModel( playlist_t *_p_playlist,  /* THEPL */
 
 PLModel::~PLModel()
 {
+    config_PutInt( p_intf, "qt-pl-showflags", rootItem->i_showflags );
+    config_SaveConfigFile( p_intf, NULL );
     delCallbacks();
     delete rootItem;
 }
@@ -835,8 +837,6 @@ void PLModel::viewchanged( int meta )
            endInsertColumns();
        }
        rebuild();
-       config_PutInt( p_intf, "qt-pl-showflags", rootItem->i_showflags );
-       config_SaveConfigFile( p_intf, NULL );
    }
 }