diff -r e41b6e1e3299 -r fc58b67d445c src/file.cpp
--- a/src/file.cpp Wed Aug 21 11:09:39 2013 +0300
+++ b/src/file.cpp Wed Aug 21 14:07:02 2013 +0300
@@ -14,14 +14,17 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
+ * =====================================================================
+ *
+ * file.cpp: File I/O and management.
+ * - File loading, parsing, manipulation, saving, closing.
+ * - LDraw path verification.
*/
#include
#include
#include
#include
-
-#include
#include "common.h"
#include "config.h"
#include "file.h"
@@ -149,7 +152,7 @@
// -----------------------------------------------------------------------------
LDFile* findLoadedFile (str name) {
for (LDFile* file : g_loadedFiles)
- if (file->name() == name)
+ if (!file->name().isEmpty() && file->getShortName() == name)
return file;
return null;