Browse Source

Sort labels in 'Add new torrent' dialog. Closes #1150 #411.

adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
1648cdc4bc
  1. 1
      src/addnewtorrentdialog.cpp

1
src/addnewtorrentdialog.cpp

@ -81,6 +81,7 @@ AddNewTorrentDialog::AddNewTorrentDialog(QWidget *parent) :
foreach (const QString& label, customLabels) { foreach (const QString& label, customLabels) {
ui->label_combo->addItem(label); ui->label_combo->addItem(label);
} }
ui->label_combo->model()->sort(0);
loadState(); loadState();
// Signal / slots // Signal / slots
connect(ui->adv_button, SIGNAL(clicked(bool)), SLOT(showAdvancedSettings(bool))); connect(ui->adv_button, SIGNAL(clicked(bool)), SLOT(showAdvancedSettings(bool)));

Loading…
Cancel
Save