Merge branch '2.0'
This commit is contained in:
commit
5fc9974b8d
|
@ -54,21 +54,6 @@ void PartTableWidget::setPartitionTable(const PartitionTable* ptable)
|
||||||
PartWidget* w = new PartWidget(this, p);
|
PartWidget* w = new PartWidget(this, p);
|
||||||
w->setVisible(true);
|
w->setVisible(true);
|
||||||
w->setFileSystemColorCode(GuiHelpers::fileSystemColorCodesFromSettings());
|
w->setFileSystemColorCode(GuiHelpers::fileSystemColorCodesFromSettings());
|
||||||
MainWindow* mw = nullptr;
|
|
||||||
foreach( QWidget* widget, qApp->topLevelWidgets() )
|
|
||||||
{
|
|
||||||
mw = qobject_cast< MainWindow* >( widget );
|
|
||||||
if ( mw )
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if ( mw )
|
|
||||||
{
|
|
||||||
connect( mw, &MainWindow::settingsChanged,
|
|
||||||
this, [w]
|
|
||||||
{
|
|
||||||
w->setFileSystemColorCode(GuiHelpers::fileSystemColorCodesFromSettings());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue