More QFileDialog show()/exec() fixes. #332
This commit is contained in:
parent
5eb79dcf9d
commit
350f7fa468
|
@ -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 )
|
||||
|
|
|
@ -1221,22 +1221,21 @@ void ConsoleDebugger::edit_BM_name( int addr )
|
|||
sprintf( stmp, "Specify Bookmark Name for %04X", addr );
|
||||
|
||||
dialog.setWindowTitle( tr("Edit Bookmark") );
|
||||
dialog.setLabelText( tr(stmp) );
|
||||
dialog.setOkButtonText( tr("Edit") );
|
||||
dialog.setLabelText( tr(stmp) );
|
||||
dialog.setOkButtonText( tr("Edit") );
|
||||
|
||||
if ( bm != NULL )
|
||||
{
|
||||
dialog.setTextValue( tr(bm->name.c_str()) );
|
||||
}
|
||||
|
||||
dialog.show();
|
||||
ret = dialog.exec();
|
||||
ret = dialog.exec();
|
||||
|
||||
if ( QDialog::Accepted == ret )
|
||||
{
|
||||
bm->name = dialog.textValue().toStdString();
|
||||
bmListUpdate(false);
|
||||
}
|
||||
{
|
||||
bm->name = dialog.textValue().toStdString();
|
||||
bmListUpdate(false);
|
||||
}
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
void ConsoleDebugger::bmListUpdate( bool reset )
|
||||
|
@ -1548,22 +1547,21 @@ void ConsoleDebugger::pcSetPlaceCustom(void)
|
|||
|
||||
g_config->getOption("SDL.DebuggerPCLineOffset" , &ofs );
|
||||
|
||||
dialog.setWindowTitle( tr("PC Line Offset") );
|
||||
dialog.setLabelText( tr("Enter a line offset from 0 to 100.") );
|
||||
dialog.setOkButtonText( tr("Ok") );
|
||||
dialog.setInputMode( QInputDialog::IntInput );
|
||||
dialog.setIntRange( 0, 100 );
|
||||
dialog.setIntValue( ofs );
|
||||
dialog.setWindowTitle( tr("PC Line Offset") );
|
||||
dialog.setLabelText( tr("Enter a line offset from 0 to 100.") );
|
||||
dialog.setOkButtonText( tr("Ok") );
|
||||
dialog.setInputMode( QInputDialog::IntInput );
|
||||
dialog.setIntRange( 0, 100 );
|
||||
dialog.setIntValue( ofs );
|
||||
|
||||
dialog.show();
|
||||
ret = dialog.exec();
|
||||
ret = dialog.exec();
|
||||
|
||||
if ( QDialog::Accepted == ret )
|
||||
{
|
||||
ofs = dialog.intValue();
|
||||
if ( QDialog::Accepted == ret )
|
||||
{
|
||||
ofs = dialog.intValue();
|
||||
|
||||
asmView->setPC_placement( 5, ofs );
|
||||
}
|
||||
asmView->setPC_placement( 5, ofs );
|
||||
}
|
||||
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -449,7 +449,6 @@ void InputConfDialog_t::openLoadPresetFile(void)
|
|||
|
||||
dialog.setOption(QFileDialog::DontUseNativeDialog, !useNativeFileDialogVal);
|
||||
|
||||
dialog.show();
|
||||
ret = dialog.exec();
|
||||
|
||||
if ( ret )
|
||||
|
@ -464,9 +463,9 @@ void InputConfDialog_t::openLoadPresetFile(void)
|
|||
}
|
||||
|
||||
if ( filename.isNull() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
{
|
||||
return;
|
||||
}
|
||||
qDebug() << "selected file path : " << filename.toUtf8();
|
||||
|
||||
fceuWrapperLock();
|
||||
|
@ -522,7 +521,6 @@ void InputConfDialog_t::openSavePresetFile(void)
|
|||
|
||||
dialog.setOption(QFileDialog::DontUseNativeDialog, !useNativeFileDialogVal);
|
||||
|
||||
dialog.show();
|
||||
ret = dialog.exec();
|
||||
|
||||
if ( ret )
|
||||
|
@ -537,9 +535,9 @@ void InputConfDialog_t::openSavePresetFile(void)
|
|||
}
|
||||
|
||||
if ( filename.isNull() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
{
|
||||
return;
|
||||
}
|
||||
qDebug() << "selected file path : " << filename.toUtf8();
|
||||
|
||||
saveInputSettingsToFile( filename.toStdString().c_str() );
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue