mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 00:50:42 +08:00
Change dialogs to use Qt's version.
The native dialogs have different behavior when dealing with filters. Qt's behavior is well defined.
This commit is contained in:
@@ -196,7 +196,7 @@ void SeerDebugDialog::handleExecutableNameToolButton () {
|
||||
|
||||
*/
|
||||
|
||||
QString name = QFileDialog::getOpenFileName(this, "Select an Executable to debug.", executableName());
|
||||
QString name = QFileDialog::getOpenFileName(this, "Select an Executable to debug.", executableName(), "", nullptr, QFileDialog::DontUseNativeDialog);
|
||||
|
||||
if (name != "") {
|
||||
setExecutableName(name);
|
||||
@@ -231,7 +231,7 @@ void SeerDebugDialog::handleExecutableWorkingDirectoryToolButton () {
|
||||
|
||||
*/
|
||||
|
||||
QString name = QFileDialog::getExistingDirectory(this, "Select a Working Directory to run in.", executableWorkingDirectory());
|
||||
QString name = QFileDialog::getExistingDirectory(this, "Select a Working Directory to run in.", executableWorkingDirectory(), QFileDialog::ShowDirsOnly|QFileDialog::DontUseNativeDialog);
|
||||
|
||||
if (name != "") {
|
||||
setExecutableWorkingDirectory(name);
|
||||
@@ -240,7 +240,7 @@ void SeerDebugDialog::handleExecutableWorkingDirectoryToolButton () {
|
||||
|
||||
void SeerDebugDialog::handleLoadCoreFilenameToolButton () {
|
||||
|
||||
QString name = QFileDialog::getOpenFileName(this, "Select a core file to debug.", coreFilename(), "Core Files (core core.*)");
|
||||
QString name = QFileDialog::getOpenFileName(this, "Select a core file to debug.", coreFilename(), "Core Files (core core.*)", nullptr, QFileDialog::DontUseNativeDialog);
|
||||
|
||||
if (name != "") {
|
||||
setCoreFilename(name);
|
||||
|
||||
Reference in New Issue
Block a user