saving properties window state when changed

to not lose it on an unclean exit
This commit is contained in:
John Sebastian Peterson
2014-12-20 17:09:35 +01:00
parent ea2b650e7f
commit cbb8cbf052
2 changed files with 12 additions and 0 deletions

View File

@@ -151,6 +151,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window,
connect(header(), SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(displayDLHoSMenu(const QPoint &)));
connect(header(), SIGNAL(sectionMoved(int, int, int)), this, SLOT(saveSettings()));
connect(header(), SIGNAL(sectionResized(int, int, int)), this, SLOT(saveSettings()));
connect(header(), SIGNAL(sortIndicatorChanged(int, Qt::SortOrder)), this, SLOT(saveSettings()));
editHotkey = new QShortcut(QKeySequence("F2"), this, SLOT(renameSelectedTorrent()), 0, Qt::WidgetShortcut);
deleteHotkey = new QShortcut(QKeySequence::Delete, this, SLOT(deleteSelectedTorrents()), 0, Qt::WidgetShortcut);