GUI: give the SelectFilesDialog a parent widget
This commit is contained in:
parent
8df66c9df7
commit
833f9af107
|
@ -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"),
|
||||
|
|
|
@ -103,7 +103,7 @@ public:
|
|||
|
||||
|
||||
|
||||
SelectFilesDialog::SelectFilesDialog() : QDialog()
|
||||
SelectFilesDialog::SelectFilesDialog(QWidget *w) : QDialog(w)
|
||||
{
|
||||
setModal(true);
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
class SelectFilesDialog : public QDialog {
|
||||
public:
|
||||
SelectFilesDialog();
|
||||
SelectFilesDialog(QWidget *w);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue