mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui->inputLineEdit->setEnabled(false);
|
||||||
|
|
||||||
QString cmd_line = "[" + RAddressString(Core()->getOffset()) + "]> " + command + "\n";
|
QString cmd_line = "[" + RAddressString(Core()->getOffset()) + "]> " + command + "\n";
|
||||||
|
|
||||||
commandTask = QSharedPointer<CommandTask>(new CommandTask(command));
|
commandTask = QSharedPointer<CommandTask>(new CommandTask(command));
|
||||||
@ -182,6 +184,8 @@ void ConsoleWidget::executeCommand(const QString &command)
|
|||||||
scrollOutputToEnd();
|
scrollOutputToEnd();
|
||||||
historyAdd(command);
|
historyAdd(command);
|
||||||
commandTask = nullptr;
|
commandTask = nullptr;
|
||||||
|
ui->inputLineEdit->setEnabled(true);
|
||||||
|
ui->inputLineEdit->setFocus();
|
||||||
});
|
});
|
||||||
Core()->getAsyncTaskManager()->start(commandTask);
|
Core()->getAsyncTaskManager()->start(commandTask);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user