mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:23:23 +00:00
Verify that copy is done
Naturally the paste button should be disabled, if this is the case, but it still makes sense to do this check. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
76a68f71a4
commit
37e7602a1e
2 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -226,7 +226,7 @@ private:
|
|||
bool m_btEnabled;
|
||||
void updateAllGlobalLists();
|
||||
QString m_pluggedInDeviceName;
|
||||
struct dive *m_copyPasteDive;
|
||||
struct dive *m_copyPasteDive = NULL;
|
||||
struct dive_components what;
|
||||
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
||||
|
|
Loading…
Add table
Reference in a new issue