preferencesAboutTextFull
Clément Fauconnier 3 years ago
commit ddf89789fc
  1. 1
      src/document/UBDocumentContainer.cpp
  2. 3
      src/document/UBDocumentController.cpp

@ -106,7 +106,6 @@ void UBDocumentContainer::addPage(int index)
void UBDocumentContainer::addPixmapAt(const QPixmap *pix, int index) void UBDocumentContainer::addPixmapAt(const QPixmap *pix, int index)
{ {
mDocumentThumbs.insert(index, pix); mDocumentThumbs.insert(index, pix);
emit documentThumbnailsUpdated(this);
} }

@ -1548,7 +1548,6 @@ void UBDocumentTreeView::dropEvent(QDropEvent *event)
const QPixmap *pix = new QPixmap(thumbTmp); const QPixmap *pix = new QPixmap(thumbTmp);
UBDocumentController *ctrl = UBApplication::documentController; UBDocumentController *ctrl = UBApplication::documentController;
ctrl->addPixmapAt(pix, toIndex); ctrl->addPixmapAt(pix, toIndex);
ctrl->TreeViewSelectionChanged(ctrl->firstSelectedTreeIndex(), QModelIndex());
} }
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
@ -1557,6 +1556,8 @@ void UBDocumentTreeView::dropEvent(QDropEvent *event)
docModel->setHighLighted(QModelIndex()); docModel->setHighLighted(QModelIndex());
} }
UBApplication::documentController->TreeViewSelectionChanged(UBApplication::documentController->firstSelectedTreeIndex(), QModelIndex());
} }
else else
{ {

Loading…
Cancel
Save