From e76ccd5926b3793d7ac58497b8a5b7f3a99d26ec Mon Sep 17 00:00:00 2001 From: John Sebastian Peterson Date: Mon, 15 Dec 2014 23:20:52 +0100 Subject: [PATCH] saving splitter state on change to not lose it on unclean exit --- src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 94700fc06..99cf21a8a 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -207,6 +207,8 @@ MainWindow::MainWindow(QWidget *parent, const QStringList& torrentCmdLine) : QMa tabs->addTab(vSplitter, IconProvider::instance()->getIcon("folder-remote"), tr("Transfers")); connect(search_filter, SIGNAL(textChanged(QString)), transferList, SLOT(applyNameFilter(QString))); + connect(hSplitter, SIGNAL(splitterMoved(int, int)), this, SLOT(writeSettings())); + connect(vSplitter, SIGNAL(splitterMoved(int, int)), this, SLOT(writeSettings())); vboxLayout->addWidget(tabs);