Commit f4bed933 authored by Felix Ernst's avatar Felix Ernst 🇺🇦 Committed by Felix Ernst
Browse files

Trigger "Exit Selection Mode" button on clicked and not on pressed

This way it works just like every other button.

This commit also removes two empty files that sneaked in by
accident.
parent 11ada151
Pipeline #232539 passed with stage
in 19 minutes and 30 seconds
......@@ -68,7 +68,7 @@ TopBar::TopBar(QWidget *parent) :
m_closeButton = new QPushButton(QIcon::fromTheme(QStringLiteral("window-close-symbolic")), "", contentsContainer);
m_closeButton->setText(i18nc("@action:button", "Exit Selection Mode"));
m_closeButton->setFlat(true);
connect(m_closeButton, &QAbstractButton::pressed,
connect(m_closeButton, &QAbstractButton::clicked,
this, &TopBar::selectionModeLeavingRequested);
QHBoxLayout *layout = new QHBoxLayout(contentsContainer);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment