summaryrefslogtreecommitdiffstats
path: root/framework/src/accounts/accountfactory.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-15 11:27:15 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-15 11:27:38 +0200
commitd353ec997f06891455dce9b51333687da670a03e (patch)
tree5e305f2c613782d028da3853bdb49aad5e12fa4c /framework/src/accounts/accountfactory.cpp
parenta4156dec117a8ebc4e810b026c489f2c6b2ec48f (diff)
downloadkube-d353ec997f06891455dce9b51333687da670a03e.tar.gz
kube-d353ec997f06891455dce9b51333687da670a03e.zip
Use QUrl for paths
so windows gets it as well
Diffstat (limited to 'framework/src/accounts/accountfactory.cpp')
-rw-r--r--framework/src/accounts/accountfactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/src/accounts/accountfactory.cpp b/framework/src/accounts/accountfactory.cpp
index 5d3c35fc..7f3f046d 100644
--- a/framework/src/accounts/accountfactory.cpp
+++ b/framework/src/accounts/accountfactory.cpp
@@ -68,8 +68,8 @@ void AccountFactory::loadPackage()
68 if (pluginPath.isEmpty()) { 68 if (pluginPath.isEmpty()) {
69 qWarning() << "Failed to load account package: " << "org.kube.accounts." + mAccountType; 69 qWarning() << "Failed to load account package: " << "org.kube.accounts." + mAccountType;
70 } else { 70 } else {
71 mUiPath = pluginPath + "/AccountSettings.qml"; 71 mUiPath = QUrl::fromLocalFile(pluginPath + "/AccountSettings.qml");
72 mLoginUi = pluginPath + "/Login.qml"; 72 mLoginUi = QUrl::fromLocalFile(pluginPath + "/Login.qml");
73 if (QFileInfo::exists(pluginPath + "/metadata.json")) { 73 if (QFileInfo::exists(pluginPath + "/metadata.json")) {
74 QFile file{pluginPath + "/metadata.json"}; 74 QFile file{pluginPath + "/metadata.json"};
75 file.open(QIODevice::ReadOnly); 75 file.open(QIODevice::ReadOnly);