Fix all warnings that we care about

This commit is contained in:
Rasmus Karlsson
2017-05-27 16:16:39 +02:00
parent 896cf7a03b
commit c4de5c806a
17 changed files with 95 additions and 104 deletions
+3 -3
View File
@@ -220,10 +220,10 @@ void NotebookTab::mouseMoveEvent(QMouseEvent *event)
QPoint relPoint = mapToParent(event->pos());
int index;
NotebookPage *page = _notebook->tabAt(relPoint, index);
NotebookPage *clickedPage = _notebook->tabAt(relPoint, index);
if (page != nullptr && page != page) {
_notebook->rearrangePage(page, index);
if (clickedPage != nullptr && clickedPage != page) {
_notebook->rearrangePage(clickedPage, index);
}
}
}