diff mainwindow.cpp @ 42:9a89dedf260a

A couple of more fixes to "weird filenames" bug.
author Jari Korhonen <jtkorhonen@gmail.com>
date Thu, 24 Jun 2010 23:41:21 +0300
parents 94bbc4b30b2a
children c32067cd19f8
line wrap: on
line diff
--- a/mainwindow.cpp	Thu Jun 24 11:38:50 2010 +0200
+++ b/mainwindow.cpp	Thu Jun 24 23:41:21 2010 +0300
@@ -224,7 +224,7 @@
         if (areAllSelectedUntracked(hgExp -> workFolderFileList))
         {
             //User wants to add selected file(s)
-            params << "add";
+            params << "add" << "--";
 
             QList <QListWidgetItem *> selList = hgExp -> workFolderFileList -> selectedItems();
 
@@ -294,7 +294,7 @@
                 if ((justMerged == false) && (areAllSelectedCommitable(hgExp -> workFolderFileList)))
                 {
                     //User wants to commit selected file(s) (and this is not merge commit, which would fail if we selected files)
-                    params << "commit" << "--message" << comment << "--user" << userInfo;
+                    params << "commit" << "--message" << comment << "--user" << userInfo << "--";
 
                     QList <QListWidgetItem *> selList = hgExp -> workFolderFileList -> selectedItems();
                     for (int i = 0; i < selList.size(); ++i)