linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #06845
[Branch ~dcplusplus-team/dcpp-plugin-sdk-cpp/SpellPlugin] Rev 25: fix dir creation
------------------------------------------------------------
revno: 25
committer: poy <poy@xxxxxxxxxx>
branch nick: SpellPlugin
timestamp: Mon 2013-05-13 18:30:06 +0200
message:
fix dir creation
modified:
src/GUI.cpp
--
lp:~dcplusplus-team/dcpp-plugin-sdk-cpp/SpellPlugin
https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-cpp/SpellPlugin
Your team Dcplusplus-team is subscribed to branch lp:~dcplusplus-team/dcpp-plugin-sdk-cpp/SpellPlugin.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-cpp/SpellPlugin/+edit-subscription
=== modified file 'src/GUI.cpp'
--- src/GUI.cpp 2013-05-05 13:55:27 +0000
+++ src/GUI.cpp 2013-05-13 16:30:06 +0000
@@ -96,7 +96,7 @@
cur->setSpacing(grid->getSpacing());
TextBox::Seed ts(Util::toT(Config::getConfig("AffPath")));
- ts.style |= ES_AUTOHSCROLL;
+ ts.style |= ES_AUTOHSCROLL | ES_READONLY;
affBox = cur->addChild(ts);
cur->addChild(Button::Seed(_T("Browse")))->onClicked([] {
@@ -113,7 +113,7 @@
cur->setSpacing(grid->getSpacing());
TextBox::Seed ts(Util::toT(Config::getConfig("DicPath")));
- ts.style |= ES_AUTOHSCROLL;
+ ts.style |= ES_AUTOHSCROLL | ES_READONLY;
dicBox = cur->addChild(ts);
cur->addChild(Button::Seed(_T("Browse")))->onClicked([] {
@@ -147,7 +147,9 @@
void GUI::ok() {
#ifdef _WIN32
- auto installPath = Util::toT(Config::getInstallPath() + "dict\\");
+ auto installPath = Util::toT(Config::getInstallPath());
+ CreateDirectory(installPath.c_str(), nullptr);
+ installPath += _T("dict\\");
CreateDirectory(installPath.c_str(), nullptr);
auto copy = [&installPath](tstring& path) {