Browse Source

fix faulty parented QFileDialog

closes issue #2205
pull/2220/head
Nils Fenner 10 years ago
parent
commit
d14e93ef91
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C
  1. 2
      src/chatlog/content/filetransferwidget.cpp

2
src/chatlog/content/filetransferwidget.cpp

@ -475,7 +475,7 @@ void FileTransferWidget::handleButton(QPushButton *btn) @@ -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);

Loading…
Cancel
Save