mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 04:40:53 +00:00
Fixed: Compilation with GCC
This commit is contained in:
parent
43104cd2e9
commit
970a3220d0
1 changed files with 3 additions and 3 deletions
|
@ -152,7 +152,7 @@ namespace NLQT
|
||||||
QString oldLdPath = Modules::config().getValue("LeveldesignPath", std::string("")).c_str();
|
QString oldLdPath = Modules::config().getValue("LeveldesignPath", std::string("")).c_str();
|
||||||
if (oldLdPath != ui.leveldesignPath->text())
|
if (oldLdPath != ui.leveldesignPath->text())
|
||||||
{
|
{
|
||||||
std::string ldPath = ui.leveldesignPath->text().toUtf8();
|
std::string ldPath = ui.leveldesignPath->text().toUtf8().constData();
|
||||||
Modules::config().getConfigFile().getVar("LeveldesignPath").forceAsString(ldPath);
|
Modules::config().getConfigFile().getVar("LeveldesignPath").forceAsString(ldPath);
|
||||||
Q_EMIT ldPathChanged(ldPath.c_str());
|
Q_EMIT ldPathChanged(ldPath.c_str());
|
||||||
// TODO: remove old Path from CPath
|
// TODO: remove old Path from CPath
|
||||||
|
@ -171,8 +171,8 @@ namespace NLQT
|
||||||
std::vector<std::string> addList;
|
std::vector<std::string> addList;
|
||||||
for (sint i = 0; i < ui.pathsListWidget->count(); ++i)
|
for (sint i = 0; i < ui.pathsListWidget->count(); ++i)
|
||||||
{
|
{
|
||||||
std::string str = ui.pathsListWidget->item(i)->text().toUtf8();
|
std::string str = ui.pathsListWidget->item(i)->text().toUtf8().constData();
|
||||||
if (str != "")
|
if (!str.empty())
|
||||||
{
|
{
|
||||||
list.push_back(str);
|
list.push_back(str);
|
||||||
if (!sl.contains(str.c_str()))
|
if (!sl.contains(str.c_str()))
|
||||||
|
|
Loading…
Reference in a new issue