Skip to content
Permalink
Browse files

Fix ServerView::mimeData not actually overriding base class function.

Fixes drag & drop behavior of ConnectDialog. Previously dragging an
item out of the connect dialog didn't yield usable data. With the
override working we get the URL as expected.
  • Loading branch information...
hacst committed Sep 19, 2014
1 parent 7c4fbee commit 4a67eebc3741b49d327b18c36a18e9c35e8b7cdd
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/mumble/ConnectDialog.cpp
  2. +1 −1 src/mumble/ConnectDialog.h
@@ -120,7 +120,7 @@ ServerView::~ServerView() {
delete siPublic;
}

QMimeData *ServerView::mimeData(const QList<QTreeWidgetItem *>& mimeitems) const {
QMimeData *ServerView::mimeData(const QList<QTreeWidgetItem *> mimeitems) const {
if (mimeitems.isEmpty())
return NULL;

@@ -115,7 +115,7 @@ class ServerView : public QTreeWidget {

ServerItem *getParent(const QString &continent, const QString &countrycode, const QString &countryname, const QString &usercontinentcode, const QString &usercountrycode);
protected:
QMimeData *mimeData(const QList<QTreeWidgetItem *>&) const Q_DECL_OVERRIDE;
QMimeData *mimeData(const QList<QTreeWidgetItem *>) const Q_DECL_OVERRIDE;
QStringList mimeTypes() const Q_DECL_OVERRIDE;
Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE;
bool dropMimeData(QTreeWidgetItem *, int, const QMimeData *, Qt::DropAction) Q_DECL_OVERRIDE;

0 comments on commit 4a67eeb

Please sign in to comment.
You can’t perform that action at this time.