Commit f70f952e authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix warning

parent 10ea2299
......@@ -4554,12 +4554,11 @@ bool MainWindow::eventFilter(QObject *object, QEvent *event)
void MainWindow::slotRemoveBinDock(const QString &name)
{
QWidget *toDelete = nullptr;
Bin *prev = nullptr;
int ix = 0;
for (auto &b : m_binWidgets) {
if (b->parentWidget()->objectName() == name) {
toDelete = b->parentWidget();
prev = m_binWidgets.takeAt(ix);
m_binWidgets.takeAt(ix);
break;
}
ix++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment