diff options
Diffstat (limited to 'src/formatimporter.cpp')
-rw-r--r-- | src/formatimporter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/formatimporter.cpp b/src/formatimporter.cpp index 672695c..f28df81 100644 --- a/src/formatimporter.cpp +++ b/src/formatimporter.cpp @@ -114,8 +114,8 @@ void FormatImporter::importBaskets() if (list.count() > 2) // Pass "." and ".." for (TQStringList::Iterator it = list.begin(); it != list.end(); ++it) // For each folder if (*it != "." && *it != ".." && dir.exists(Global::savesFolder() + *it + "/.basket")) // If it can be a basket folder - if ( baskets.tqfind((*it) + "/") == baskets.end() && - baskets.tqfind(*it) == baskets.end() ) // And if it is not already in the imported baskets list + if ( baskets.find((*it) + "/") == baskets.end() && + baskets.find(*it) == baskets.end() ) // And if it is not already in the imported baskets list baskets.append(*it); std::cout << "Import Baskets: Found " << baskets.count() << " baskets to import." << std::endl; @@ -137,7 +137,7 @@ void FormatImporter::importBaskets() TQString newFolderName = folderName; if (newFolderName.endsWith("/")) newFolderName = newFolderName.left(newFolderName.length() - 1); - newFolderName = newFolderName.mid(newFolderName.tqfindRev('/') + 1); + newFolderName = newFolderName.mid(newFolderName.findRev('/') + 1); newFolderName = Tools::fileNameForNewFile(newFolderName, Global::basketsFolder()); FormatImporter f; f.copyFolder(folderName, Global::basketsFolder() + newFolderName); |