diff --git a/retroshare-gui/src/gui/ShareDialog.cpp b/retroshare-gui/src/gui/ShareDialog.cpp index ed2a28fe6..03711567a 100644 --- a/retroshare-gui/src/gui/ShareDialog.cpp +++ b/retroshare-gui/src/gui/ShareDialog.cpp @@ -65,11 +65,10 @@ void ShareDialog::browseDirectory() QString qdir = QFileDialog::getExistingDirectory(this, tr("Select A Folder To Share"), "", QFileDialog::DontUseNativeDialog | QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); /* add it to the server */ - std::string dir = qdir.toStdString(); currentDir = qdir.toStdString(); - if (dir != "") + if (currentDir != "") { - ui.localpath_lineEdit->setText(QString::fromStdString(dir)); + ui.localpath_lineEdit->setText(QString::fromStdString(currentDir)); } }