Fix DatabaseOpenDialog layout

This commit is contained in:
Janek Bevendorff 2020-04-11 19:02:57 +02:00
parent 34483a1287
commit 3dcac2c46c
3 changed files with 7 additions and 5 deletions

View File

@ -83,7 +83,7 @@ void operator delete[](void* ptr) noexcept
* Custom insecure delete operator that does not zero out memory before
* freeing a buffer. Can be used for better performance.
*/
void operator delete(void* ptr, bool)noexcept
void operator delete(void* ptr, bool) noexcept
{
std::free(ptr);
}

View File

@ -31,7 +31,10 @@ DatabaseOpenDialog::DatabaseOpenDialog(QWidget* parent)
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint | Qt::ForeignWindow);
#endif
connect(m_view, SIGNAL(dialogFinished(bool)), this, SLOT(complete(bool)));
setLayout(m_view->layout());
auto* layout = new QVBoxLayout();
layout->setMargin(0);
setLayout(layout);
layout->addWidget(m_view);
setMinimumWidth(700);
}

View File

@ -811,9 +811,8 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
void MainWindow::adjustToTabVisibilityChange(bool tabsVisible)
{
if (m_showToolbarSeparator) {
m_ui->toolbarSeparator->setVisible(!tabsVisible && m_ui->stackedWidget->currentIndex() == DatabaseTabScreen);
}
m_ui->toolbarSeparator->setVisible(m_showToolbarSeparator && !tabsVisible
&& m_ui->stackedWidget->currentIndex() == DatabaseTabScreen);
}
void MainWindow::updateWindowTitle()