From d8497433f784649e5b388fd8e727a2e841886e46 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 24 May 2010 14:49:12 +0200 Subject: 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. --- archivefilewidget.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'archivefilewidget.cpp') 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); -- cgit v1.2.3-70-g09d2