Limit file names to 255 bytes to avoid issues on Linux FS

This commit is contained in:
Christophe Dumez
2011-03-21 19:01:36 +00:00
parent 784d972602
commit 85d6365bc2
3 changed files with 61 additions and 37 deletions

View File

@@ -78,8 +78,8 @@ public:
if(name.endsWith(".!qB"))
name.chop(4);
itemData << name;
qDebug("Created a TreeItem file with name %s", qPrintable(getName()));
qDebug("parent is %s", qPrintable(parent->getName()));
//qDebug("Created a TreeItem file with name %s", qPrintable(getName()));
//qDebug("parent is %s", qPrintable(parent->getName()));
itemData << QVariant((qulonglong)f.size);
total_done = 0;
itemData << 0.; // Progress;