mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-04 17:15:31 -05:00
Fix bug causing RS to crash at startup when some icons were removed from toolbar
For example: disabled plugins
This commit is contained in:
parent
f50351063d
commit
0c39b5c021
@ -207,8 +207,9 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags flags)
|
|||||||
connect(ui->listWidget, SIGNAL(currentRowChanged(int)), this, SLOT(setNewPage(int)));
|
connect(ui->listWidget, SIGNAL(currentRowChanged(int)), this, SLOT(setNewPage(int)));
|
||||||
connect(ui->stackPages, SIGNAL(currentChanged(int)), this, SLOT(setNewPage(int)));
|
connect(ui->stackPages, SIGNAL(currentChanged(int)), this, SLOT(setNewPage(int)));
|
||||||
|
|
||||||
//ui->stackPages->setCurrentIndex(Settings->getLastPageInMainWindow());
|
int lastpageindex = Settings->getLastPageInMainWindow();
|
||||||
setNewPage(Settings->getLastPageInMainWindow());
|
if(lastpageindex < ui->stackPages->count()) //Do not crash when a page was removed after last run
|
||||||
|
setNewPage(lastpageindex);
|
||||||
|
|
||||||
ui->splitter->setStretchFactor(0, 0);
|
ui->splitter->setStretchFactor(0, 0);
|
||||||
ui->splitter->setStretchFactor(1, 1);
|
ui->splitter->setStretchFactor(1, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user