Fri, 20 Dec 2013 13:35:08 +0200
removed some debug code
src/document.cc | file | annotate | diff | comparison | revisions | |
src/gldraw.cc | file | annotate | diff | comparison | revisions | |
src/gui.cc | file | annotate | diff | comparison | revisions | |
src/gui_actions.cc | file | annotate | diff | comparison | revisions |
--- a/src/document.cc Fri Dec 20 04:05:36 2013 +0200 +++ b/src/document.cc Fri Dec 20 13:35:08 2013 +0200 @@ -174,7 +174,7 @@ // ----------------------------------------------------------------------------- LDDocument* findDocument (str name) { for (LDDocument * file : g_loadedFiles) - if (!file->getName().isEmpty() && file->getDisplayName() == name) + if (!file->getName().isEmpty() && file->getName() == name) return file; return null;
--- a/src/gldraw.cc Fri Dec 20 04:05:36 2013 +0200 +++ b/src/gldraw.cc Fri Dec 20 13:35:08 2013 +0200 @@ -1256,7 +1256,6 @@ if (idx == 0xFFFFFF) continue; // White is background; skip - dlog ("idx: %1", idx); LDObject* obj = LDObject::fromID (idx); // If this is an additive single pick and the object is currently selected,
--- a/src/gui.cc Fri Dec 20 04:05:36 2013 +0200 +++ b/src/gui.cc Fri Dec 20 13:35:08 2013 +0200 @@ -835,27 +835,19 @@ void ForgeWindow::updateDocumentList() { ui->fileList->clear(); - QStringList names; for (LDDocument* f : g_loadedFiles) { // Don't list implicit files unless explicitly desired. if (f->isImplicit() && !gui_implicitfiles) - { dlog ("Skipped implicit file %1", f->getName()); continue; - } // Add an item to the list for this file and store a pointer to it in // the file, so we can find files by the list item. ui->fileList->addItem (""); QListWidgetItem* item = ui->fileList->item (ui->fileList->count() - 1); f->setListItem (item); - - names << f->getName(); - updateDocumentListItem (f); } - - dlog ("Document list updated: %1", names); } void ForgeWindow::updateDocumentListItem (LDDocument* f)
--- a/src/gui_actions.cc Fri Dec 20 04:05:36 2013 +0200 +++ b/src/gui_actions.cc Fri Dec 20 13:35:08 2013 +0200 @@ -679,7 +679,6 @@ // If this the parent document isn't already in s/, we need to stuff it into // a subdirectory named s/. Ensure it exists! str topdirname = basename (dirname (getCurrentDocument()->getFullPath())); - dlog ("topdirname: %1", topdirname); if (topdirname != "s") { str desiredPath = subdirname + "/s";