Browse Source

Added a condition in MainForm::newFile where it says tmp+='/'; Changed to:

if (!tmp.isEmpty())
	tmp+='/';

This keeps tmp from being an absolute path when it shouldn't be.


git-svn-id: file:///var/svn/tigccpp/trunk@429 9552661e-59e3-4036-b4f2-dbe53926924f
joeyadams 18 years ago
parent
commit
2fd80fa60d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ktigcc/mainform.ui.h

+ 2 - 1
ktigcc/mainform.ui.h

@@ -1307,7 +1307,8 @@ void MainForm::newFile( QListViewItem *parent, QString text, const char *iconNam
     suffix="txt";
   suffix='.'+suffix;
   
-  tmp+='/';
+  if (!tmp.isEmpty())
+    tmp+='/';
   tmp+="New File";
   tmpK.setPath(projectFileName);
   kurlNewFileName(tmpK,tmp);