Windows: change backslashes to slashes when accepting native viewer command (avoid later issues with stringtostrings)
This commit is contained in:
parent
80e356ffb2
commit
dff323ad9f
@ -213,6 +213,9 @@ void ViewAction::editActions()
|
||||
|
||||
string sact = (const char *)newActionLE->text().toLocal8Bit();
|
||||
trimstring(sact);
|
||||
#ifdef _WIN32
|
||||
path_slashize(sact);
|
||||
#endif
|
||||
for (list<string>::const_iterator mit = mtypes.begin();
|
||||
mit != mtypes.end(); mit++) {
|
||||
set<string>::iterator xit = viewerXs.find(*mit);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user