Fix formatting brackets in DatabaseWidgetStateSync::setActive function

This commit is contained in:
frostasm 2017-11-02 20:47:54 +02:00
parent 8b00d0580b
commit afaa0a3493

View File

@ -50,16 +50,19 @@ void DatabaseWidgetStateSync::setActive(DatabaseWidget* dbWidget)
if (m_activeDbWidget) { if (m_activeDbWidget) {
m_blockUpdates = true; m_blockUpdates = true;
if (!m_mainSplitterSizes.isEmpty()) if (!m_mainSplitterSizes.isEmpty()) {
m_activeDbWidget->setMainSplitterSizes(m_mainSplitterSizes); m_activeDbWidget->setMainSplitterSizes(m_mainSplitterSizes);
}
if (!m_detailSplitterSizes.isEmpty()) if (!m_detailSplitterSizes.isEmpty()) {
m_activeDbWidget->setDetailSplitterSizes(m_detailSplitterSizes); m_activeDbWidget->setDetailSplitterSizes(m_detailSplitterSizes);
}
if (m_activeDbWidget->isInSearchMode()) if (m_activeDbWidget->isInSearchMode()) {
restoreSearchView(); restoreSearchView();
else } else {
restoreListView(); restoreListView();
}
m_blockUpdates = false; m_blockUpdates = false;