GUI: give the SelectFilesDialog a parent widget

This commit is contained in:
Daniel Marjamaki 2012-01-11 06:26:24 +01:00
parent 8df66c9df7
commit 833f9af107
3 changed files with 4 additions and 4 deletions

View File

@ -350,8 +350,8 @@ QStringList MainWindow::SelectFilesToCheck(QFileDialog::FileMode mode)
// QFileDialog::getExistingDirectory() because they show native Windows
// selection dialog which is a lot more usable than QT:s own dialog.
if (mode == QFileDialog::ExistingFiles) {
SelectFilesDialog *dialog = new SelectFilesDialog;
dialog->exec();
SelectFilesDialog dialog(this);
dialog.exec();
/*
selected = QFileDialog::getOpenFileNames(this,
tr("Select files to check"),

View File

@ -103,7 +103,7 @@ public:
SelectFilesDialog::SelectFilesDialog() : QDialog()
SelectFilesDialog::SelectFilesDialog(QWidget *w) : QDialog(w)
{
setModal(true);

View File

@ -6,7 +6,7 @@
class SelectFilesDialog : public QDialog {
public:
SelectFilesDialog();
SelectFilesDialog(QWidget *w);
};
#endif