Skip to content
Snippets Groups Projects
Commit 4fa0b2cd authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Debugger: Do not warn when nothing is selected


That is the case when the debugger options page was never opened.

Change-Id: If3cb37810ec51d300dca157b2c0c23c6a6e79b49
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 54d2f1bb
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,8 @@ void DebuggerItemConfigWidget::setItem(const DebuggerItem &item) ...@@ -141,7 +141,8 @@ void DebuggerItemConfigWidget::setItem(const DebuggerItem &item)
void DebuggerItemConfigWidget::apply() void DebuggerItemConfigWidget::apply()
{ {
DebuggerItem item = m_model->currentDebugger(); DebuggerItem item = m_model->currentDebugger();
QTC_ASSERT(item.isValid(), return); if (!item.isValid())
return; // Nothing was selected here.
item.setDisplayName(m_displayNameLineEdit->text()); item.setDisplayName(m_displayNameLineEdit->text());
item.setCommand(m_binaryChooser->fileName()); item.setCommand(m_binaryChooser->fileName());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment