made the 'add account' popup box actually pop up to the foreground

This commit is contained in:
datguy 2018-06-06 21:15:33 +03:00 committed by fourtf
parent 7578743b74
commit 56fcc496cf
2 changed files with 8 additions and 1 deletions

View file

@ -1,6 +1,9 @@
#include "widgets/logindialog.hpp"
#include "common.hpp"
#include "util/urlfetch.hpp"
#if FMT_USE_WINDOWS_H
#include <Windows.h>
#endif
#include <QClipboard>
#include <QDebug>
@ -187,6 +190,10 @@ void AdvancedLoginWidget::refreshButtons()
LoginWidget::LoginWidget()
{
#if FMT_USE_WINDOWS_H
::SetWindowPos((HWND)this->winId(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
#endif
this->setLayout(&this->ui.mainLayout);
this->ui.mainLayout.addWidget(&this->ui.tabWidget);

View file

@ -9,7 +9,6 @@
#include "widgets/logindialog.hpp"
#include <algorithm>
#include <QDialogButtonBox>
#include <QHeaderView>
#include <QTableView>
@ -37,6 +36,7 @@ AccountsPage::AccountsPage()
static auto loginWidget = new LoginWidget();
loginWidget->show();
loginWidget->raise();
});
view->getTableView()->setStyleSheet("background: #333");