summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 573517e70..9124434e0 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1346,6 +1346,10 @@ void QMLManager::pasteDiveData(int id)
appendTextToLog("trying to paste to non-existing dive");
return;
}
+ if (!m_copyPasteDive) {
+ appendTextToLog("dive to paste is not selected");
+ return;
+ }
selective_copy_dive(m_copyPasteDive, d, what, false);
changesNeedSaving();
}