From beeedc4d64e016ab26ac844cb04fc6cbdef4a464 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 23 Jun 2014 09:32:08 +0100 Subject: [PATCH] Disable Drag/Drop Ride on Windows QT 5 .. it crashes ! .. we need to wait for QT 5.3.1 when this bug is fixed: https://bugreports.qt-project.org/browse/QTBUG-37813 --- src/RideNavigator.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/RideNavigator.cpp b/src/RideNavigator.cpp index fe01f0ff6..cfb77ef21 100644 --- a/src/RideNavigator.cpp +++ b/src/RideNavigator.cpp @@ -1212,10 +1212,14 @@ RideNavigator::showTreeContextMenuPopup(const QPoint &pos) RideTreeView::RideTreeView() { +#if (defined WIN32) && (QT_VERSION > 0x050000) + // don't allow ride drop on Windows with QT5 +#else setDragDropMode(QAbstractItemView::InternalMove); setDragEnabled(true); setDragDropOverwriteMode(false); setDropIndicatorShown(true); +#endif #ifdef Q_OS_MAC setAttribute(Qt::WA_MacShowFocusRect, 0); #endif