diff options
author | Saturneric <[email protected]> | 2022-03-19 06:09:55 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-03-19 06:09:55 +0000 |
commit | dad03e9ccc57da0a04d058ec418ce0068ce3841d (patch) | |
tree | e3d6bec71f3c070139ef5dfa7cca0cf70acb4dd1 /src/main.cpp | |
parent | <fix>(ui): Fix the problem that the file cannot be signed (diff) | |
download | GpgFrontend-dad03e9ccc57da0a04d058ec418ce0068ce3841d.tar.gz GpgFrontend-dad03e9ccc57da0a04d058ec418ce0068ce3841d.zip |
<fix>(core, ui): Fix path double-byte encoding problem under Windows
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3f72be7f..a63d2d02 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -135,7 +135,7 @@ int main(int argc, char* argv[]) { std::filesystem::path css_path = GpgFrontend::GlobalSettingStation::GetInstance().GetResourceDir() / "css" / "default.qss"; - QFile file(css_path.string().c_str()); + QFile file(css_path.u8string().c_str()); file.open(QFile::ReadOnly); QString styleSheet = QLatin1String(file.readAll()); qApp->setStyleSheet(styleSheet); @@ -151,8 +151,8 @@ int main(int argc, char* argv[]) { GpgFrontend::GpgContext::CreateInstance( GpgFrontend::SingletonFunctionObject< GpgFrontend::GpgContext>::GetDefaultChannel(), - std::make_unique<GpgFrontend::GpgContext>(true, db_path.string(), true, - gpg_path.string())); + std::make_unique<GpgFrontend::GpgContext>(true, db_path.u8string(), true, + gpg_path.u8string())); #endif // create the thread to load the gpg context |