mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix DatabaseOpenDialog layout
This commit is contained in:
parent
34483a1287
commit
3dcac2c46c
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user