Skip to content

Commit

Permalink
Update welcomedialog.cpp
Browse files Browse the repository at this point in the history
Auto popup was a bad idea, becomes annoying. Revert to previous state.
  • Loading branch information
rodlie committed Mar 20, 2024
1 parent 292f8e5 commit 80b9413
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/GUI/welcomedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <QPainter>
#include <QLabel>

#include "widgets/toolbutton.h"
#include "appsupport.h"

WelcomeDialog::WelcomeDialog(QMenu *recentMenu,
Expand Down Expand Up @@ -81,13 +80,11 @@ WelcomeDialog::WelcomeDialog(QMenu *recentMenu,
QSizePolicy::Expanding);
connect(openButton, &QPushButton::released, openFunc);

const auto recentButton = new ToolButton(this, true);
const auto recentDefaultAct = new QAction(tr("Open Recent"), this);
recentButton->setDefaultAction(recentDefaultAct);
const auto recentButton = new QPushButton(tr("Open Recent"), this);
recentButton->setSizePolicy(QSizePolicy::Preferred,
QSizePolicy::Preferred);
recentButton->setContentsMargins(0, 0, 0, 0);
recentButton->setObjectName("FlatButton");
recentButton->setObjectName("WelcomeRecentButton");
recentButton->setMenu(recentMenu);

thisLay->addWidget(mainWid, 0, Qt::AlignHCenter | Qt::AlignVCenter);
Expand Down

0 comments on commit 80b9413

Please sign in to comment.