Browse Source

fixed empty url when saving

Malte Veerman 10 years ago
parent
commit
eb4c50d9fb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/src/loader.cpp

+ 2 - 2
lib/src/loader.cpp

@@ -161,8 +161,9 @@ bool Loader::load(const QUrl &url)
             bool success;
             int interval = line.toInt(&success);
             if (success)
+            {
                 setInterval(interval, false);
-	    
+            }
             else
             {
                 setError("Unable to parse interval line");
@@ -326,7 +327,6 @@ bool Loader::load(const QUrl &url)
         connect(hwmon, SIGNAL(configUpdateNeeded()), this, SLOT(createConfigFile()));
     }
     
-    m_configUrl = url;
     emit configUrlChanged();
     
     m_configFile = fileContent;