]> Some of my projects - localmylist.git/commitdiff
Implement requesting renames for file locations.
authorAPTX <marek321@gmail.com>
Tue, 7 May 2013 22:33:23 +0000 (00:33 +0200)
committerAPTX <marek321@gmail.com>
Tue, 7 May 2013 22:33:23 +0000 (00:33 +0200)
localmylist-management/tabs/mylisttab.cpp

index 133a9f0d380a976ea184b6f8c5ca8f78b36b888b..f5a54b88ab1821efe5a504669fa93383c1756616 100644 (file)
@@ -167,6 +167,15 @@ void MyListTab::on_myListView_renameFilesRequested(const QModelIndex &index)
 
                typeLetter = 'f';
        }
+       else if (node->type() == MyListNode::FileLocationNode)
+       {
+               q.prepare(
+                       "UPDATE file_location fl SET renamed = NULL, failed_rename = false "
+                       "       WHERE fl.location_id = :locationId");
+               q.bindValue(":locationId", node->id());
+
+               typeLetter = 'l';
+       }
        else
        {
                return;