Open Session - set *.ossn as default open file filter
This commit is contained in:
parent
b6a6b776e1
commit
f3f970cb64
@ -145,10 +145,17 @@ void MainWindow::on_actionOpenSession_triggered()
|
|||||||
|
|
||||||
static QString dirName;
|
static QString dirName;
|
||||||
QString fileName;
|
QString fileName;
|
||||||
|
QStringList fileTypes = SessionFileFormat::supportedFileTypes();
|
||||||
|
QString fileType;
|
||||||
QString errorStr;
|
QString errorStr;
|
||||||
bool ret;
|
bool ret;
|
||||||
|
|
||||||
fileName = QFileDialog::getOpenFileName(this, tr("Open Session"), dirName);
|
fileTypes.append("All files (*)");
|
||||||
|
if (fileTypes.size())
|
||||||
|
fileType = fileTypes.at(0);
|
||||||
|
|
||||||
|
fileName = QFileDialog::getOpenFileName(this, tr("Open Session"),
|
||||||
|
dirName, fileTypes.join(";;"), &fileType);
|
||||||
if (fileName.isEmpty())
|
if (fileName.isEmpty())
|
||||||
goto _exit;
|
goto _exit;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user