diff -r a5b53cc10436 -r 0b3a5bc4e8a8 config/addversionprompt.cpp --- a/config/addversionprompt.cpp Sun Jun 07 19:15:12 2015 +0300 +++ b/config/addversionprompt.cpp Sun Jun 07 19:55:06 2015 +0300 @@ -20,6 +20,7 @@ #include #include "addversionprompt.h" #include "configwindow.h" +#include "versionguientry.h" #include "ui_addversion.h" // @@ -36,9 +37,9 @@ connect (ui.buttonBox, SIGNAL (rejected()), this, SLOT (reject())); connect (ui.findExeButton, SIGNAL (clicked()), this, SLOT (findExePath())); - ui.nameField->setText (entry->name); - ui.exePathField->setText (entry->pathItem->text()); - ui.releaseCheckbox->setChecked (entry->isRelease); + ui.nameField->setText (entry->name()); + ui.exePathField->setText (entry->pathItem()->text()); + ui.releaseCheckbox->setChecked (entry->isRelease()); } // @@ -47,10 +48,9 @@ void AddVersionPrompt::acceptPressed() { - m_entry->name = ui.nameField->text(); - m_entry->isRelease = ui.releaseCheckbox->isChecked(); - m_entry->labelItem->setText (m_entry->name); - m_entry->pathItem->setText (ui.exePathField->text()); + m_entry->setName (ui.nameField->text()); + m_entry->setRelease (ui.releaseCheckbox->isChecked()); + m_entry->pathItem()->setText (ui.exePathField->text()); accept(); }