Remove pointlessly setting the desktop widget as the job window

If there is no top-level widget (like is the case in  Plasma) this has no
effect other than breaking the Qt6 build.

See https://invent.kde.org/teams/frameworks-devs/kf6-workboard/-/issues/3#note_431586
wilder-5.25
Volker Krause 4 years ago
parent 7e8719e8f6
commit 97d5e6b526
  1. 2
      applets/icon/iconapplet.cpp

@ -8,7 +8,6 @@
#include <QAction> #include <QAction>
#include <QApplication> #include <QApplication>
#include <QDesktopWidget>
#include <QDir> #include <QDir>
#include <QDropEvent> #include <QDropEvent>
#include <QFileInfo> #include <QFileInfo>
@ -468,7 +467,6 @@ void IconApplet::processDrop(QObject *dropEvent)
static_cast<Qt::KeyboardModifiers>(dropEvent->property("modifiers").toInt())); static_cast<Qt::KeyboardModifiers>(dropEvent->property("modifiers").toInt()));
KIO::DropJob *dropJob = KIO::drop(&de, m_url); KIO::DropJob *dropJob = KIO::drop(&de, m_url);
KJobWidgets::setWindow(dropJob, QApplication::desktop());
return; return;
} }
} }

Loading…
Cancel
Save