mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
do not capture by default all values in lambdas
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -154,7 +154,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWi
|
||||
// Qt doesn't like vertical moving toolbars, so we have to force them...
|
||||
// See https://github.com/PolyMC/PolyMC/issues/493
|
||||
connect(ui->instanceToolBar, &QToolBar::orientationChanged,
|
||||
[=](Qt::Orientation) { ui->instanceToolBar->setOrientation(Qt::Vertical); });
|
||||
[this](Qt::Orientation) { ui->instanceToolBar->setOrientation(Qt::Vertical); });
|
||||
|
||||
// if you try to add a widget to a toolbar in a .ui file
|
||||
// qt designer will delete it when you save the file >:(
|
||||
|
Reference in New Issue
Block a user