mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Disable Console QLineEdit when task is running
This commit is contained in:
parent
baf7abce60
commit
05e49ee8a6
@ -174,6 +174,8 @@ void ConsoleWidget::executeCommand(const QString &command)
|
||||
return;
|
||||
}
|
||||
|
||||
ui->inputLineEdit->setEnabled(false);
|
||||
|
||||
QString cmd_line = "[" + RAddressString(Core()->getOffset()) + "]> " + command + "\n";
|
||||
|
||||
commandTask = QSharedPointer<CommandTask>(new CommandTask(command));
|
||||
@ -182,6 +184,8 @@ void ConsoleWidget::executeCommand(const QString &command)
|
||||
scrollOutputToEnd();
|
||||
historyAdd(command);
|
||||
commandTask = nullptr;
|
||||
ui->inputLineEdit->setEnabled(true);
|
||||
ui->inputLineEdit->setFocus();
|
||||
});
|
||||
Core()->getAsyncTaskManager()->start(commandTask);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user