Commit 1cec6888 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

don't start a drag event if we have just one tab

parent 737990f6
Pipeline #241007 passed with stage
in 19 minutes and 19 seconds
......@@ -182,7 +182,7 @@ void KateTabBar::mousePressEvent(QMouseEvent *event)
}
int tab = tabAt(event->pos());
if (event->button() == Qt::LeftButton && tab != -1) {
if (event->button() == Qt::LeftButton && tab != -1 && count() > 1) {
dragStartPos = event->pos();
auto r = tabRect(tab);
dragHotspotPos = {dragStartPos.x() - r.x(), dragStartPos.y() - r.y()};
......
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