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
parent 11ada151
......@@ -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"));
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