More QFileDialog show()/exec() fixes. #332

This commit is contained in:
mjbudd77 2021-02-18 23:28:31 -05:00
parent 5eb79dcf9d
commit 350f7fa468
6 changed files with 28 additions and 38 deletions

View File

@ -367,7 +367,6 @@ void CodeDataLoggerDialog_t::saveCdlFileAs(void)
dialog.setOption(QFileDialog::DontUseNativeDialog, !useNativeFileDialogVal);
dialog.show();
ret = dialog.exec();
if ( ret )
@ -423,7 +422,6 @@ void CodeDataLoggerDialog_t::loadCdlFile(void)
dialog.setOption(QFileDialog::DontUseNativeDialog, !useNativeFileDialogVal);
dialog.show();
ret = dialog.exec();
if ( ret )
@ -508,7 +506,6 @@ void CodeDataLoggerDialog_t::SaveStrippedROM(int invert)
dialog.setOption(QFileDialog::DontUseNativeDialog, !useNativeFileDialogVal);
dialog.show();
ret = dialog.exec();
if ( ret )

View File

@ -1229,7 +1229,6 @@ void ConsoleDebugger::edit_BM_name( int addr )
dialog.setTextValue( tr(bm->name.c_str()) );
}
dialog.show();
ret = dialog.exec();
if ( QDialog::Accepted == ret )
@ -1555,7 +1554,6 @@ void ConsoleDebugger::pcSetPlaceCustom(void)
dialog.setIntRange( 0, 100 );
dialog.setIntValue( ofs );
dialog.show();
ret = dialog.exec();
if ( QDialog::Accepted == ret )

View File

@ -818,7 +818,6 @@ void GamePadConfDialog_t::newProfileCallback(void)
dialog.setLabelText( tr("Specify New Profile Name") );
dialog.setOkButtonText( tr("Create") );
dialog.show();
ret = dialog.exec();
if ( QDialog::Accepted == ret )

View File

@ -449,7 +449,6 @@ void InputConfDialog_t::openLoadPresetFile(void)
dialog.setOption(QFileDialog::DontUseNativeDialog, !useNativeFileDialogVal);
dialog.show();
ret = dialog.exec();
if ( ret )
@ -522,7 +521,6 @@ void InputConfDialog_t::openSavePresetFile(void)
dialog.setOption(QFileDialog::DontUseNativeDialog, !useNativeFileDialogVal);
dialog.show();
ret = dialog.exec();
if ( ret )

View File

@ -790,7 +790,6 @@ void ppuNameTableViewerDialog_t::openColorPicker( QColor *c )
dialog.setCurrentColor( *c );
dialog.setOption( QColorDialog::DontUseNativeDialog, true );
dialog.show();
ret = dialog.exec();
if ( ret == QDialog::Accepted )

View File

@ -463,7 +463,6 @@ void ppuPatternView_t::openColorPicker( QColor *c )
dialog.setCurrentColor( *c );
dialog.setOption( QColorDialog::DontUseNativeDialog, true );
dialog.show();
ret = dialog.exec();
if ( ret == QDialog::Accepted )