┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinview.h
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2023-04-20 15:17:19 +0000
committerMéven Car <[email protected]>2023-04-20 15:17:19 +0000
commit040e2afcfafaa8edd365d959760d4d0e7f3e48d3 (patch)
treeb13e95f4b56966e232447246539d0e825fe88415 /src/views/dolphinview.h
parent49ea43e24fede0dd001c594db9f35935facebba8 (diff)
DolphinView: allow selectUrls to be considered for selection in more cases
* when there is some selection already (some files were created previously) * when the model has not yet insert all the selectedUrls Also * Rename DolphinView::slotCopyingDone to slotItemCreatedFromJob BUG: 407161
Diffstat (limited to 'src/views/dolphinview.h')
-rw-r--r--src/views/dolphinview.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h
index 6394b885c..3486ee9b4 100644
--- a/src/views/dolphinview.h
+++ b/src/views/dolphinview.h
@@ -666,7 +666,7 @@ private Q_SLOTS:
void slotMouseButtonPressed(int itemIndex, Qt::MouseButtons buttons);
void slotRenameDialogRenamingFinished(const QList<QUrl> &urls);
void slotSelectedItemTextPressed(int index);
- void slotCopyingDone(KIO::Job *, const QUrl &, const QUrl &to);
+ void slotItemCreatedFromJob(KIO::Job *, const QUrl &, const QUrl &to);
void slotIncreaseZoom();
void slotDecreaseZoom();
void slotSwipeUp();
@@ -928,9 +928,11 @@ private:
// resolution scroll wheels)
int m_controlWheelAccumulatedDelta;
- QList<QUrl> m_selectedUrls; // Used for making the view to remember selections after F5
+ QList<QUrl> m_selectedUrls; // Used for making the view to remember selections after F5 and file operations
bool m_clearSelectionBeforeSelectingNewItems;
bool m_markFirstNewlySelectedItemAsCurrent;
+ /// Decides whether items created by jobs should automatically be selected.
+ bool m_selectJobCreatedItems;
VersionControlObserver *m_versionControlObserver;
@@ -950,6 +952,7 @@ private:
friend class DolphinDetailsViewTest;
friend class DolphinMainWindowTest;
friend class DolphinPart; // Accesses m_model
+ void updateSelectionState();
};
/// Allow using DolphinView::Mode in QVariant