From aaa81f44e5b2fd183e251b905d95d5dee9425022 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Tue, 16 Oct 2012 17:29:22 +0200 Subject: [PATCH 4/5] Removed file extension check from local selection change. We do not need it here any more, the new local tree widget does that better. --- qhimdtransfer/qhimdmainwindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qhimdtransfer/qhimdmainwindow.cpp b/qhimdtransfer/qhimdmainwindow.cpp index 6c11ffe..5ff5171 100644 --- a/qhimdtransfer/qhimdmainwindow.cpp +++ b/qhimdtransfer/qhimdmainwindow.cpp @@ -506,10 +506,7 @@ void QHiMDMainWindow::handle_local_selection_change(const QItemSelection&, const } if(localmodel.fileInfo(index).isFile()) - { - if(localmodel.filePath(index).endsWith(".mp3", Qt::CaseInsensitive)) - download_possible = (ui->himd_devices->count() > 0); - } + download_possible = (ui->himd_devices->count() > 0); ui->action_Download->setEnabled(download_possible); ui->download_button->setEnabled(download_possible); -- 1.7.12.3