瀏覽代碼

Code clarification

Malte Veerman 6 年之前
父節點
當前提交
6cfbab2d7d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      import/src/loader.cpp

+ 4 - 4
import/src/loader.cpp

@@ -553,17 +553,17 @@ bool Loader::save(const QUrl &url)
             map[QStringLiteral("content")] = m_config;
             map[QStringLiteral("content")] = m_config;
 
 
             action.setArguments(map);
             action.setArguments(map);
-            auto reply = action.execute();
+            auto job = action.execute();
 
 
-            if (!reply->exec())
+            if (!job->exec())
             {
             {
-                if (reply->error() == 4)
+                if (job->error() == 4)
                 {
                 {
                     emit info(i18n("Saving of file aborted by user"));
                     emit info(i18n("Saving of file aborted by user"));
                     return false;
                     return false;
                 }
                 }
 
 
-                emit error(i18n("Error executing action. Code %1; %2; %3", reply->error(), reply->errorString(), reply->errorText()), true);
+                emit error(i18n("Error executing action. Code %1; %2; %3", job->error(), job->errorString(), job->errorText()), true);
                 return false;
                 return false;
             }
             }
         }
         }