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
|
// QFileDialog::getExistingDirectory() because they show native Windows
|
||||||
// selection dialog which is a lot more usable than QT:s own dialog.
|
// selection dialog which is a lot more usable than QT:s own dialog.
|
||||||
if (mode == QFileDialog::ExistingFiles) {
|
if (mode == QFileDialog::ExistingFiles) {
|
||||||
SelectFilesDialog *dialog = new SelectFilesDialog;
|
SelectFilesDialog dialog(this);
|
||||||
dialog->exec();
|
dialog.exec();
|
||||||
/*
|
/*
|
||||||
selected = QFileDialog::getOpenFileNames(this,
|
selected = QFileDialog::getOpenFileNames(this,
|
||||||
tr("Select files to check"),
|
tr("Select files to check"),
|
||||||
|
|
|
@ -103,7 +103,7 @@ public:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SelectFilesDialog::SelectFilesDialog() : QDialog()
|
SelectFilesDialog::SelectFilesDialog(QWidget *w) : QDialog(w)
|
||||||
{
|
{
|
||||||
setModal(true);
|
setModal(true);
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
class SelectFilesDialog : public QDialog {
|
class SelectFilesDialog : public QDialog {
|
||||||
public:
|
public:
|
||||||
SelectFilesDialog();
|
SelectFilesDialog(QWidget *w);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue