From 3e9ef47cf872f32e9cda146308f12f56800009d5 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 6 May 2015 22:42:52 +0200 Subject: [PATCH] removed unnecessary lines of code (drag & drop implementation) --- gui/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 013a7d1..215eb37 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -158,7 +158,6 @@ MainWindow::MainWindow(QWidget *parent) : connect(m_ui->abortButton, &QPushButton::clicked, [this] {m_abortClicked = true; m_ui->abortButton->setEnabled(false); }); connect(m_ui->tagSelectionComboBox, static_cast(&QComboBox::activated), m_ui->stackedWidget, &QStackedWidget::setCurrentIndex); // event filter - m_ui->fileNameLabel->installEventFilter(this); m_ui->rightWidget->installEventFilter(this); // apply settings setCurrentDirectory(Settings::mainWindowCurrentFileBrowserDirectory()); @@ -201,7 +200,7 @@ void MainWindow::closeEvent(QCloseEvent *) bool MainWindow::eventFilter(QObject *obj, QEvent *event) { - if(obj == m_ui->rightWidget || obj == m_ui->fileNameLabel) { + if(obj == m_ui->rightWidget) { switch(event->type()) { case QEvent::DragEnter: case QEvent::Drop: