mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Constify openLocalFolder
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
4fb898ac16
commit
51627ef989
2 changed files with 3 additions and 5 deletions
|
@ -925,11 +925,9 @@ UnifiedSearchResultsListModel *User::getUnifiedSearchResultsListModel() const
|
|||
return _unifiedSearchResultsModel;
|
||||
}
|
||||
|
||||
void User::openLocalFolder()
|
||||
void User::openLocalFolder() const
|
||||
{
|
||||
const auto folder = getFolder();
|
||||
|
||||
if (folder) {
|
||||
if (const auto folder = getFolder()) {
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(folder->path()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ public:
|
|||
[[nodiscard]] Folder *getFolder() const;
|
||||
ActivityListModel *getActivityModel();
|
||||
[[nodiscard]] UnifiedSearchResultsListModel *getUnifiedSearchResultsListModel() const;
|
||||
void openLocalFolder();
|
||||
void openLocalFolder() const;
|
||||
void openFolderLocallyOrInBrowser(const QString &fullRemotePath);
|
||||
[[nodiscard]] QString name() const;
|
||||
[[nodiscard]] QString server(bool shortened = true) const;
|
||||
|
|
Loading…
Reference in a new issue