1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix faulty parented QFileDialog

closes issue #2205
This commit is contained in:
Nils Fenner 2015-09-13 23:09:21 +02:00
parent 693e8d8443
commit d14e93ef91
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C

View File

@ -475,7 +475,7 @@ void FileTransferWidget::handleButton(QPushButton *btn)
Core::getInstance()->pauseResumeFileRecv(fileInfo.friendId, fileInfo.fileNum);
else if (btn->objectName() == "accept")
{
QString path = QFileDialog::getSaveFileName(this,
QString path = QFileDialog::getSaveFileName(parentWidget(),
tr("Save a file", "Title of the file saving dialog"),
Settings::getInstance().getGlobalAutoAcceptDir() + "/" + fileInfo.fileName);
acceptTransfer(path);