NOISSUE fix crash bug in version page of instances

This was caused by generation of temporary component objects
when no such thing should have been happening.
This commit is contained in:
Petr Mrázek 2017-12-29 00:35:10 +01:00
parent 257f8ca9fd
commit 50ca6cbb4d
2 changed files with 2 additions and 2 deletions

View File

@ -527,7 +527,7 @@ void VersionPage::onGameUpdateError(QString error)
QMessageBox::Warning)->show();
}
ComponentPtr VersionPage::current()
Component * VersionPage::current()
{
auto row = currentRow();
if(row < 0)

View File

@ -67,7 +67,7 @@ private slots:
void on_changeVersionBtn_clicked();
private:
ComponentPtr current();
Component * current();
int currentRow();
void updateButtons(int row = -1);
void preselect(int row = 0);