Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
1cec6888
Commit
1cec6888
authored
Oct 03, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/katetabbar.cpp
View file @
1cec6888
...
...
@@ -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
()};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment