summaryrefslogtreecommitdiffstats
path: root/dbanalyzer.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2011-12-17 10:37:15 +0100
committerArno <am@disconnect.de>2011-12-17 10:37:15 +0100
commit27d2b736a8fc33bc2f98212ebde25d97fcefac16 (patch)
treed39249c20f3a5f6b45f304fa03077594faa926c1 /dbanalyzer.cpp
parente61280ee1bc34a6b04c1db208a560b4df544fdcb (diff)
downloadSheMov-27d2b736a8fc33bc2f98212ebde25d97fcefac16.tar.gz
SheMov-27d2b736a8fc33bc2f98212ebde25d97fcefac16.tar.bz2
SheMov-27d2b736a8fc33bc2f98212ebde25d97fcefac16.zip
Make DbAnalyzerDialog non-modal
Make DbAnalyzerdialg a member of Shemov, so it can be shown non-modal. So actors/genres can be edited while the dialog is open. It also has the nice side effect that we can refresh the views after deleting stray items.
Diffstat (limited to 'dbanalyzer.cpp')
-rw-r--r--dbanalyzer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/dbanalyzer.cpp b/dbanalyzer.cpp
index 52fb71f..4de88da 100644
--- a/dbanalyzer.cpp
+++ b/dbanalyzer.cpp
@@ -195,13 +195,14 @@ void DbAnalyzerDialog::deleteItems(){
int deleteMode;
switch(mTab->currentIndex()){
case 0:
+ case 1:
return;
break;
- case 1:
+ case 2:
view = mStrayActorsV;
deleteMode = Actors;
break;
- case 2:
+ case 3:
view = mStrayGenresV;
deleteMode = Genres;
break;
@@ -219,7 +220,7 @@ void DbAnalyzerDialog::deleteItems(){
}
void DbAnalyzerDialog::tabChanged(int index){
- mDelete->setEnabled(index != 0);
+ mDelete->setEnabled(index > 1);
mTotal->setText(mTotals.at(index));
}