blob: 7c8a78152b6f60f8f945b66e47f0f71be4089b45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
|