mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 10:34:41 +00:00
fix for double-click loading models/projects using accened/non standard chars
Qstring needs to know the char space to properly convert the chars. apparently, for command line arguments char* we have to use Qstring::fromLocal8Bit
This commit is contained in:
parent
db6e10e707
commit
fa227f474c
@ -61,10 +61,10 @@ int main(int argc, char *argv[])
|
||||
"for a longer documentation\n"
|
||||
);
|
||||
|
||||
if(QString(argv[1]).endsWith("mlp",Qt::CaseInsensitive) || QString(argv[1]).endsWith("mlb", Qt::CaseInsensitive) || QString(argv[1]).endsWith("aln",Qt::CaseInsensitive) || QString(argv[1]).endsWith("out",Qt::CaseInsensitive) || QString(argv[1]).endsWith("nvm",Qt::CaseInsensitive))
|
||||
window.openProject(argv[1]);
|
||||
if(QString::fromLocal8Bit(argv[1]).endsWith("mlp",Qt::CaseInsensitive) || QString::fromLocal8Bit(argv[1]).endsWith("mlb", Qt::CaseInsensitive) || QString::fromLocal8Bit(argv[1]).endsWith("aln",Qt::CaseInsensitive) || QString::fromLocal8Bit(argv[1]).endsWith("out",Qt::CaseInsensitive) || QString::fromLocal8Bit(argv[1]).endsWith("nvm",Qt::CaseInsensitive))
|
||||
window.openProject(QString::fromLocal8Bit(argv[1]));
|
||||
else
|
||||
window.importMeshWithLayerManagement(argv[1]);
|
||||
window.importMeshWithLayerManagement(QString::fromLocal8Bit(argv[1]));
|
||||
}
|
||||
//else if(filterObj->noEvent) window.open();
|
||||
return app.exec();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user