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(); QMessageBox::Warning)->show();
} }
ComponentPtr VersionPage::current() Component * VersionPage::current()
{ {
auto row = currentRow(); auto row = currentRow();
if(row < 0) if(row < 0)

View File

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