Merge branch '2.0'

This commit is contained in:
Andrius Štikonas 2016-02-26 14:48:29 +00:00
commit 5fc9974b8d
1 changed files with 0 additions and 15 deletions

View File

@ -54,21 +54,6 @@ void PartTableWidget::setPartitionTable(const PartitionTable* ptable)
PartWidget* w = new PartWidget(this, p);
w->setVisible(true);
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());
});
}
}
}