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 committed 2017-12-29 00:35:10 +01:00
1 parent 257f8ca9fd
commit 50ca6cbb4d
2 files changed
+2 -2

No files matched your search

+1 -1
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)
+1 -1
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);