Add setting to disable enter auto repeat
This commit is contained in:
parent
6a02c7863b
commit
9a869936f0
|
|
@ -113,13 +113,13 @@ void CommandLineEdit::execute()
|
|||
if(mCurrentScriptIndex == -1)
|
||||
return;
|
||||
GUISCRIPTEXECUTE exec = mScriptInfo[mCurrentScriptIndex].execute;
|
||||
QString & cmd = text();
|
||||
QString cmd = text();
|
||||
|
||||
if(exec)
|
||||
{
|
||||
if(cmd.trimmed().isEmpty())
|
||||
cmd = getLineFromHistory();
|
||||
|
||||
if(Config()->getBool("Gui", "AutoRepeatOnEnter"))
|
||||
cmd = getLineFromHistory();
|
||||
// Send this string directly to the user
|
||||
exec(cmd.toUtf8().constData());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -281,6 +281,7 @@ Configuration::Configuration() : QObject(), noMoreMsgbox(false)
|
|||
guiBool.insert("ShowExitConfirmation", true);
|
||||
guiBool.insert("DisableAutoComplete", false);
|
||||
guiBool.insert("CaseSensitiveAutoComplete", false);
|
||||
guiBool.insert("AutoRepeatOnEnter", false);
|
||||
//Named menu settings
|
||||
insertMenuBuilderBools(&guiBool, "CPUDisassembly", 50); //CPUDisassembly
|
||||
insertMenuBuilderBools(&guiBool, "CPUDump", 50); //CPUDump
|
||||
|
|
|
|||
Loading…
Reference in New Issue