mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
This commit is contained in:
parent
634b4d4f4d
commit
f66ef95918
2 changed files with 1 additions and 5 deletions
|
@ -82,6 +82,7 @@ AddNewTorrentDialog::AddNewTorrentDialog(QWidget *parent) :
|
||||||
ui->label_combo->addItem(label);
|
ui->label_combo->addItem(label);
|
||||||
}
|
}
|
||||||
ui->label_combo->model()->sort(0);
|
ui->label_combo->model()->sort(0);
|
||||||
|
ui->content_tree->header()->setSortIndicator(0, Qt::AscendingOrder);
|
||||||
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)));
|
||||||
|
@ -243,7 +244,6 @@ bool AddNewTorrentDialog::loadTorrent(const QString& torrent_path, const QString
|
||||||
|
|
||||||
// Expand root folder
|
// Expand root folder
|
||||||
ui->content_tree->setExpanded(m_contentModel->index(0, 0), true);
|
ui->content_tree->setExpanded(m_contentModel->index(0, 0), true);
|
||||||
ui->content_tree->header()->setResizeMode(0, QHeaderView::Stretch);
|
|
||||||
} else {
|
} else {
|
||||||
// Update save paths (append file name to them)
|
// Update save paths (append file name to them)
|
||||||
#if LIBTORRENT_VERSION_NUM >= 001600
|
#if LIBTORRENT_VERSION_NUM >= 001600
|
||||||
|
@ -704,7 +704,6 @@ void AddNewTorrentDialog::updateMetadata(const QTorrentHandle &h) {
|
||||||
|
|
||||||
// Expand root folder
|
// Expand root folder
|
||||||
ui->content_tree->setExpanded(m_contentModel->index(0, 0), true);
|
ui->content_tree->setExpanded(m_contentModel->index(0, 0), true);
|
||||||
ui->content_tree->header()->setResizeMode(0, QHeaderView::Stretch);
|
|
||||||
} else {
|
} else {
|
||||||
// Update save paths (append file name to them)
|
// Update save paths (append file name to them)
|
||||||
#if LIBTORRENT_VERSION_NUM >= 001600
|
#if LIBTORRENT_VERSION_NUM >= 001600
|
||||||
|
|
|
@ -176,9 +176,6 @@
|
||||||
<property name="sortingEnabled">
|
<property name="sortingEnabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<attribute name="headerStretchLastSection">
|
|
||||||
<bool>false</bool>
|
|
||||||
</attribute>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue