From 282add250cb5f405a75f5a5eca36570789a7b072 Mon Sep 17 00:00:00 2001 From: Anton Kalmykov Date: Mon, 13 Apr 2015 22:56:49 +0300 Subject: [PATCH] Fix editing link with non-default prefix --- src/manager/forms/linkdialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/manager/forms/linkdialog.cpp b/src/manager/forms/linkdialog.cpp index 0f994a7..63378ce 100644 --- a/src/manager/forms/linkdialog.cpp +++ b/src/manager/forms/linkdialog.cpp @@ -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); @@ -48,6 +46,9 @@ void LinkDialog::setItem(LinkItem* item) index = static_cast(item->logLevel()) + 1; logLevelCombo_->setCurrentIndex(index); + + nameEdit_->setText(item->name()); + targetEdit_->setText(item->target()); } else { nameEdit_->clear();