if (subDirectory != "library")
{
#endif
- //local (application) directory has priority over other dirs:
+ // Local (application) directory has priority over other dirs:
if (!appDir.isEmpty() && appDir != "/" && appDir != getHomeDir())
{
dirList.append(appDir + "/" + subDirectory);
// SuSE style:
dirList.append("/usr/X11R6/" + appDirName + "/" + subDirectory);
dirList.append("/usr/X11R6/share/" + appDirName + "/" + subDirectory);
- dirList.append(getHomeDir() + "/." + appDirName + "/" + subDirectory);
+//This is what's picking up crap in .architektonas...
+//We'll take it out for now...
+//But maybe we can check to see if it's "library" and bypass if so...
+// dirList.append(getHomeDir() + "/." + appDirName + "/" + subDirectory);
#ifdef __APPLE__
}
#endif
{
ret += (*it);
RS_DEBUG->print((*it).toLatin1().data());
+//printf("System: *it=\"%s\"\n", (*it).toAscii().data());
}
}
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));
}
}
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();
statusBar()->showMessage(tr("Running script '%1'").arg(name), 2000);
QStringList scriptList = RS_SYSTEM->getScriptList();
- scriptList.append(RS_SYSTEM->getHomeDir() + "/.qcad/" + name);
+ scriptList.append(RS_SYSTEM->getHomeDir() + "/.architektonas/" + name);
for (QStringList::Iterator it = scriptList.begin(); it!=scriptList.end(); ++it)
{