]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Slight fix to r353 in Rambetter-fixes temp: the file suffix in
authorrambetter <rambetter@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Sun, 19 Dec 2010 01:31:52 +0000 (01:31 +0000)
committerrambetter <rambetter@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Sun, 19 Dec 2010 01:31:52 +0000 (01:31 +0000)
save operation is case sensitive now w.r.t. to checking a registered
suffix.  The problem was that saving a file foo.MAP does not work.

PLEASE MERGE THIS TO TRUNK.

git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/branches/Rambetter-temp-fixes@354 8a3a26a2-13c4-0310-b231-cf6edde360e5

radiant/gtkmisc.cpp

index f398604b8cf18fbe3280196245f3ef7ffb55913e..dbcd3633caf966eed845038958614860c25585b5 100644 (file)
@@ -1513,7 +1513,7 @@ const char* file_dialog (void *parent, gboolean open, const char* title, const c
         int knownExtension = 0;
         for (int i = typelist.GetNumTypes() - 1; i >= 0; i--) {
           type = typelist.GetTypeForIndex(i);
-          if (stricmp(w, type.pattern + 1) == 0) {
+          if (strcmp(w, type.pattern + 1) == 0) {
             knownExtension = 1;
             break;
           }