Added drop support for copying/moving comics in the current folder

This commit is contained in:
Luis Ángel San Martín
2014-10-11 17:01:15 +02:00
parent a25818a0ca
commit 28d8bd2940
15 changed files with 393 additions and 51 deletions

View File

@ -449,6 +449,8 @@ QString TreeModel::getDatabase()
QString TreeModel::getFolderPath(const QModelIndex &folder)
{
if(!folder.isValid()) //root folder
return "/";
return static_cast<TreeItem*>(folder.internalPointer())->data(TreeModel::Path).toString();
}