diff options
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 2 | ||||
| -rw-r--r-- | src/views/dolphinview.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 11c3cd6d2..9ade1e5e9 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1790,7 +1790,7 @@ void DolphinView::resetZoomLevel() setZoomLevel(ZoomLevelInfo::zoomLevelForIconSize(QSize(userDefaultIconSize, userDefaultIconSize))); } -void DolphinView::selectFileOnceAvailable(const QUrl &url, std::function<bool()> condition) +void DolphinView::selectFileOnceAvailable(const QUrl &url, const std::function<bool()> &condition) { // need to wait for the item to be added to the model QMetaObject::Connection *connection = new QMetaObject::Connection; diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 4918a7539..5a2907df7 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -965,7 +965,7 @@ private: bool tryShowNameToolTip(QHelpEvent *event); - void selectFileOnceAvailable(const QUrl &url, std::function<bool()> condition); + void selectFileOnceAvailable(const QUrl &url, const std::function<bool()> &condition); private: void updatePalette(); |
