kile-local-url.patch 845 B

1234567891011121314151617181920212223
  1. diff --git a/src/main.cpp b/src/main.cpp
  2. index 0e58cfa1..d3e43d10 100644
  3. --- a/src/main.cpp
  4. +++ b/src/main.cpp
  5. @@ -164,7 +164,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
  6. kile->openDocument(readDataFromStdin());
  7. }
  8. else {
  9. - const QUrl url = QUrl::fromUserInput(argument);
  10. + const QUrl url = QUrl::fromUserInput(argument, QDir::currentPath(), QUrl::AssumeLocalFile);
  11. if(isProject(url)) {
  12. kile->openProject(url);
  13. @@ -190,7 +190,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
  14. interface->call("openDocument", readDataFromStdin());
  15. }
  16. else {
  17. - const QUrl url = QUrl::fromUserInput(argument);
  18. + const QUrl url = QUrl::fromUserInput(argument, QDir::currentPath(), QUrl::AssumeLocalFile);
  19. if(isProject(url)) {
  20. interface->call("openProject", url.url());