From 51381ec98ade45155926e744cedadb6f9a83c183 Mon Sep 17 00:00:00 2001 From: andreas <andreas@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Mon, 21 Jun 2010 22:11:03 +0000 Subject: [PATCH] added missing fromNativeSeparators in python shell git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2436 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- modules/gui/src/python_shell/python_shell_widget.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/gui/src/python_shell/python_shell_widget.cc b/modules/gui/src/python_shell/python_shell_widget.cc index 905f133f0..6fcf3ed32 100644 --- a/modules/gui/src/python_shell/python_shell_widget.cc +++ b/modules/gui/src/python_shell/python_shell_widget.cc @@ -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); -- GitLab