summaryrefslogtreecommitdiffstats
path: root/archivefilewidget.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-05-24 14:49:12 +0200
committerArno <am@disconnect.de>2010-05-24 14:49:12 +0200
commitd8497433f784649e5b388fd8e727a2e841886e46 (patch)
tree54abcc08e2e5af835507465042a83aaf252ab669 /archivefilewidget.cpp
parent1656d5e88a301afaec65e13566d72abecb1c8d3b (diff)
downloadSheMov-d8497433f784649e5b388fd8e727a2e841886e46.tar.gz
SheMov-d8497433f784649e5b388fd8e727a2e841886e46.tar.bz2
SheMov-d8497433f784649e5b388fd8e727a2e841886e46.zip
Bugfix for commit 8827510ec55eda169340b5414bd60eb3ba3bfb79 et al.
Remove duplicate QLabels in ArchiveEditDialog after given commit. Also readd ListModel to genre QComboBox in the dialog. Seems I deleted a little to much.
Diffstat (limited to 'archivefilewidget.cpp')
-rw-r--r--archivefilewidget.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/archivefilewidget.cpp b/archivefilewidget.cpp
index 818ac43..ce824aa 100644
--- a/archivefilewidget.cpp
+++ b/archivefilewidget.cpp
@@ -47,7 +47,12 @@ ArchiveFileWidget::ArchiveFileWidget(QWidget *parent, Qt::WindowFlags f) : QWidg
//genre combobox
QHBoxLayout *genreLayout = new QHBoxLayout;
QLabel *l2 = new QLabel(tr("Select genre"));
- mGenre = new QComboBox;
+ mGenre = new QComboBox;
+ mGenre->setModel(mGenreModel);
+ int idx = mGenre->findText("shemale");
+ if(idx != -1){
+ mGenre->setCurrentIndex(idx);
+ }
genreLayout->addWidget(l2);
genreLayout->addWidget(mGenre);
mainLayout->addLayout(genreLayout);