--- last.fm-1.3.0.62.orig/src/libLastFmTools/Settings.cpp +++ last.fm-1.3.0.62/src/libLastFmTools/Settings.cpp @@ -208,7 +208,7 @@ foreach (QString key, s.childKeys()) urls[key.toInt()] = s.value( key ).toString(); - remove( "" ); //current group + s.remove( "" ); //current group int i = 0; foreach (QString url, urls) --- last.fm-1.3.0.62.orig/src/sidebarextension/SideBarModel.cpp +++ last.fm-1.3.0.62/src/sidebarextension/SideBarModel.cpp @@ -378,7 +378,7 @@ { QModelIndex const parent = index( row, 0 ); int const n = old_data.count() - new_data.count(); - if (n > 0) beginRemoveRows( parent, 0, n ); + if (n > 0) beginRemoveRows( parent, 0, n - 1 ); if (n < 0) beginInsertRows( parent, 0, -n ); old_data = new_data; if (n > 0) endRemoveRows();