Skip to content

Commit

Permalink
Fix editing link with non-default prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
psycha0s committed Apr 13, 2015
1 parent 08fb0f0 commit 282add2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/manager/forms/linkdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ void LinkDialog::setItem(LinkItem* item)
item_ = item;

if(item) {
nameEdit_->setText(item->name());
locationEdit_->setText(item->location());
targetEdit_->setText(item->target());

int index = prefixCombo_->findText(item->prefix());
prefixCombo_->setCurrentIndex(index);
Expand All @@ -48,6 +46,9 @@ void LinkDialog::setItem(LinkItem* item)

index = static_cast<int>(item->logLevel()) + 1;
logLevelCombo_->setCurrentIndex(index);

nameEdit_->setText(item->name());
targetEdit_->setText(item->target());
}
else {
nameEdit_->clear();
Expand Down

0 comments on commit 282add2

Please sign in to comment.