зеркало из https://github.com/nextcloud/desktop.git
Constify openLocalFolder
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
e60bbf97d8
Коммит
5611f876b0
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче