Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qt/main.cpp')
-rw-r--r--qt/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qt/main.cpp b/qt/main.cpp
index 51ceb90e04..ea687e25c0 100644
--- a/qt/main.cpp
+++ b/qt/main.cpp
@@ -92,8 +92,9 @@ int main(int argc, char *argv[])
QStringList buttons;
buttons << "Accept" << "Decline";
- FileReader f(GetPlatform().ReadPathForFile("eula.html"));
- qt::InfoDialog eulaDialog("MapsWithMe End User Licensing Agreement", f.ReadAsText().c_str(), NULL, buttons);
+ string buffer;
+ FileReader(GetPlatform().ReadPathForFile("eula.html")).ReadAsString(buffer);
+ qt::InfoDialog eulaDialog("MapsWithMe End User Licensing Agreement", buffer.c_str(), NULL, buttons);
eulaAccepted = (eulaDialog.exec() == 1);
Settings::Set(SETTING_EULA_ACCEPTED, eulaAccepted);
}