From: APTX Date: Tue, 7 May 2013 22:33:23 +0000 (+0200) Subject: Implement requesting renames for file locations. X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=79b8cfa331a02442a741e6b10002a1a2fbd28d8b;p=localmylist.git Implement requesting renames for file locations. --- diff --git a/localmylist-management/tabs/mylisttab.cpp b/localmylist-management/tabs/mylisttab.cpp index 133a9f0..f5a54b8 100644 --- a/localmylist-management/tabs/mylisttab.cpp +++ b/localmylist-management/tabs/mylisttab.cpp @@ -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;