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:
parent
257f8ca9fd
commit
50ca6cbb4d
@ -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)
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user