From 0396fdb01d12e51bd2cc63478819b366c0453d29 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sat, 6 Mar 2021 20:26:21 +0100 Subject: Moves all globals into a structure that can be deleted before the app exists. Fixes #193. --- src/protocols/filehandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/protocols/filehandler.cpp') diff --git a/src/protocols/filehandler.cpp b/src/protocols/filehandler.cpp index dfb6243..9e76dcd 100644 --- a/src/protocols/filehandler.cpp +++ b/src/protocols/filehandler.cpp @@ -38,7 +38,7 @@ bool FileHandler::startRequest(const QUrl &url, RequestOptions options) page += QString("# Index of %1\n").arg(url.path()); auto filters = QDir::Dirs | QDir::Files | QDir::NoDot; - if (kristall::options.show_hidden_files_in_dirs) filters |= QDir::Hidden; + if (kristall::globals().options.show_hidden_files_in_dirs) filters |= QDir::Hidden; dir.setFilter(filters); // Iterate over files in the directory, and add links to each. -- cgit v1.2.3