From 1648cdc4bcbfe764154fa3fe2ea4504735bc66af Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sun, 29 Dec 2013 18:44:07 +0200 Subject: [PATCH] Sort labels in 'Add new torrent' dialog. Closes #1150 #411. --- src/addnewtorrentdialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/addnewtorrentdialog.cpp b/src/addnewtorrentdialog.cpp index 4ed0994b2..0efbfd5fd 100644 --- a/src/addnewtorrentdialog.cpp +++ b/src/addnewtorrentdialog.cpp @@ -81,6 +81,7 @@ AddNewTorrentDialog::AddNewTorrentDialog(QWidget *parent) : foreach (const QString& label, customLabels) { ui->label_combo->addItem(label); } + ui->label_combo->model()->sort(0); loadState(); // Signal / slots connect(ui->adv_button, SIGNAL(clicked(bool)), SLOT(showAdvancedSettings(bool)));