Commit 4b43b2a4 authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Keep function body always with success case

parent ef074e23
......@@ -135,14 +135,15 @@ void DetachableTabBar::mouseReleaseEvent(QMouseEvent *event)
void DetachableTabBar::dragEnterEvent(QDragEnterEvent* event)
const auto dragId = QStringLiteral("konsole/terminal_display");
if (event->mimeData()->hasFormat(dragId)) {
if (!event->mimeData()->hasFormat(dragId)) {
auto other_pid = event->mimeData()->data(dragId).toInt();
// don't accept the drop if it's another instance of konsole
if (qApp->applicationPid() != other_pid) {
void DetachableTabBar::dragMoveEvent(QDragMoveEvent* event)
Markdown is supported
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