summaryrefslogtreecommitdiff
path: root/autoaccept.patch
diff options
context:
space:
mode:
Diffstat (limited to 'autoaccept.patch')
-rw-r--r--autoaccept.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/autoaccept.patch b/autoaccept.patch
new file mode 100644
index 0000000..7c8a781
--- /dev/null
+++ b/autoaccept.patch
@@ -0,0 +1,13 @@
+diff --git a/src/widget/friendwidget.cpp b/src/widget/friendwidget.cpp
+index 752c2f81..a0d76c58 100644
+--- a/src/widget/friendwidget.cpp
++++ b/src/widget/friendwidget.cpp
+@@ -222,7 +222,7 @@ void FriendWidget::onContextMenuCalled(QContextMenuEvent* event)
+ Settings::getInstance().setAutoAcceptDir(id, "");
+ } else if (autoAccept->isChecked()) {
+ const QString dir = QFileDialog::getExistingDirectory(
+- Q_NULLPTR, tr("Choose an auto accept directory", "popup title"), dir);
++ Q_NULLPTR, tr("Choose an auto accept directory", "popup title"), Settings::getInstance().getAutoAcceptDir(id));
+
+ autoAccept->setChecked(true);
+ qDebug() << "Setting auto accept dir for" << friendId << "to" << dir;