Skip to content
Snippets Groups Projects
Commit 51381ec9 authored by andreas's avatar andreas
Browse files

added missing fromNativeSeparators in python shell

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2436 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent e8024224
No related branches found
No related tags found
No related merge requests found
......@@ -532,7 +532,7 @@ void PythonShellWidget::InsertPathCompletion(const QString& completion)
QString path=completion;
// append dir separator for directories if none present (Windows adds it already for the inline completion)
if(QFileInfo(path).isDir() && ! completion.endsWith(QDir::separator())){
path+=QDir::separator();
path+="/";
}
InsertCompletion(QDir::toNativeSeparators(path));
}
......@@ -645,9 +645,9 @@ void PythonShellWidget::Complete(bool inline_completion)
QTextCursor::MoveAnchor, sep);
}
if (QDir(text).isAbsolute()) {
emit SetPathCompletionPrefix(text);
emit SetPathCompletionPrefix(QDir::fromNativeSeparators(text));
} else {
emit SetPathCompletionPrefix(QDir::currentPath()+QDir::separator()+text);
emit SetPathCompletionPrefix(QDir::currentPath()+"/"+QDir::fromNativeSeparators(text));
}
emit RequestPathCompletion(cursorRect(cp),
inline_completion);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment