]> Shamusworld >> Repos - architektonas/blobdiff - src/forms/librarywidget.cpp
Fixed spurious library paths being added to Library Browser.
[architektonas] / src / forms / librarywidget.cpp
index 8ca7ca1b5f361d746ead6144ad3231f1f9cec3af..3f8d67ecc89450329b289b14e417733d75e75820 100644 (file)
@@ -157,6 +157,11 @@ void LibraryWidget::appendTree(QTreeWidgetItem * item, QString directory)
                                newItem = (item ? new QTreeWidgetItem(item, list) : new QTreeWidgetItem(ui.lvDirectory, list));
                        }
 
+//This is picking up the directory tree TWICE, but ONLY if there are no thumbnails!
+//Actually, only if there is no corresponding thumbnail DIRECTORY under .architektonas...
+//Dunno why...
+//It was picking up .architektonas from the home directory in rs_system.cpp, that's why!
+//printf("LibraryWidget::appendTree: *it=\"%s\"\n", (*it).toAscii().data());
                        appendTree(newItem, directory + "/" + (*it));
                }
        }
@@ -214,6 +219,7 @@ void LibraryWidget::updatePreview(QTreeWidgetItem * item, int /*column*/)
                newItem = new QListWidgetItem(QIcon(pixmap), label, ui.ivPreview);
 //Doesn't do what we want...
 //             newItem->setSizeHint(QSize(64, 64));
+//printf("LibraryWidget: label = \"%s\"\n", label.toAscii().data());
        }
 
        QApplication::restoreOverrideCursor();