From fb8d5ae7250809eb33011e6d4745030c89f33fb1 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 26 Feb 2015 13:27:26 +0100 Subject: [PATCH] small changes --- mix/FileIo.cpp | 2 +- mix/FileIo.h | 2 +- mix/qml/js/ProjectModel.js | 14 -------------- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/mix/FileIo.cpp b/mix/FileIo.cpp index cfc0b6a94..204da5f15 100644 --- a/mix/FileIo.cpp +++ b/mix/FileIo.cpp @@ -40,7 +40,7 @@ using namespace dev; using namespace dev::crypto; using namespace dev::mix; -void FileIo::openFileBrowser(QString _dir) +void FileIo::openFileBrowser(QString const& _dir) { QDesktopServices::openUrl(QUrl(_dir)); } diff --git a/mix/FileIo.h b/mix/FileIo.h index 9c8f91b86..f91b32441 100644 --- a/mix/FileIo.h +++ b/mix/FileIo.h @@ -56,7 +56,7 @@ public: /// Compress a folder, @returns sha3 of the compressed file. Q_INVOKABLE QStringList makePackage(QString const& _deploymentFolder); /// Open a file browser - Q_INVOKABLE void openFileBrowser(QString _dir); + Q_INVOKABLE void openFileBrowser(QString const& _dir); private: QString getHomePath() const; diff --git a/mix/qml/js/ProjectModel.js b/mix/qml/js/ProjectModel.js index d1f197d5d..16670242c 100644 --- a/mix/qml/js/ProjectModel.js +++ b/mix/qml/js/ProjectModel.js @@ -343,20 +343,6 @@ function deployContracts(ctrIndex, ctrAddresses, ctrNames, callBack) }); } -function checkNewLog() -{ - var requests = []; - requests.push({ - jsonrpc: "2.0", - method: "eth_changed", - params: [0], - id: 0 - }); - rpcCall(requests, function (httpRequest, response) { - console.log("eth log: " + response); - }); -} - function finalizeDeployment(deploymentId, addresses) { deploymentStepChanged(qsTr("Packaging application ...")); var deploymentDir = projectPath + deploymentId + "/";