diff --git a/src/widget/wlibrary.cpp b/src/widget/wlibrary.cpp index 789a5792dd5..dd73056fd97 100644 --- a/src/widget/wlibrary.cpp +++ b/src/widget/wlibrary.cpp @@ -37,8 +37,8 @@ bool WLibrary::registerView(const QString& name, QWidget* view) { return false; } if (dynamic_cast(view) == nullptr) { - qDebug() << "WARNING: Attempted to register a view with WLibrary " - << "that does not implement the LibraryView interface. " + qDebug() << "WARNING: Attempted to register view" << name << "with WLibrary " + << "which does not implement the LibraryView interface. " << "Ignoring."; return false; } @@ -58,8 +58,8 @@ void WLibrary::switchToView(const QString& name) { if (widget != nullptr) { LibraryView * lview = dynamic_cast(widget); if (lview == nullptr) { - qDebug() << "WARNING: Attempted to register a view with WLibrary " - << "that does not implement the LibraryView interface. " + qDebug() << "WARNING: Attempted to switch to view" << name << "with WLibrary " + << "which does not implement the LibraryView interface. " << "Ignoring."; return; } @@ -80,8 +80,8 @@ void WLibrary::search(const QString& name) { QWidget* current = currentWidget(); LibraryView* view = dynamic_cast(current); if (view == nullptr) { - qDebug() << "WARNING: Attempted to register a view with WLibrary " - << "that does not implement the LibraryView interface. Ignoring."; + qDebug() << "WARNING: Attempted to search in view" << name << "with WLibrary " + << "which does not implement the LibraryView interface. Ignoring."; return; } lock.unlock(); diff --git a/src/widget/wtracktableview.cpp b/src/widget/wtracktableview.cpp index 3a75b7590c4..c506b416427 100644 --- a/src/widget/wtracktableview.cpp +++ b/src/widget/wtracktableview.cpp @@ -963,13 +963,13 @@ bool WTrackTableView::isTrackInCurrentView(const TrackId& trackId) { void WTrackTableView::setSelectedTracks(const QList& trackIds) { QItemSelectionModel* pSelectionModel = selectionModel(); VERIFY_OR_DEBUG_ASSERT(pSelectionModel != nullptr) { - qWarning() << "No selected tracks available"; + qWarning() << "No selection model"; return; } TrackModel* pTrackModel = getTrackModel(); VERIFY_OR_DEBUG_ASSERT(pTrackModel != nullptr) { - qWarning() << "No selected tracks available"; + qWarning() << "No track model"; return; } @@ -986,17 +986,18 @@ void WTrackTableView::setSelectedTracks(const QList& trackIds) { bool WTrackTableView::setCurrentTrackId(const TrackId& trackId, int column, bool scrollToTrack) { QItemSelectionModel* pSelectionModel = selectionModel(); VERIFY_OR_DEBUG_ASSERT(pSelectionModel != nullptr) { - qWarning() << "No selected tracks available"; + qWarning() << "No selection model"; return false; } TrackModel* pTrackModel = getTrackModel(); VERIFY_OR_DEBUG_ASSERT(pTrackModel != nullptr) { - qWarning() << "No selected tracks available"; + qWarning() << "No track model"; return false; } const QVector trackRows = pTrackModel->getTrackRows(trackId); if (trackRows.empty()) { + qDebug() << "WTrackTableView: track" << trackId << "is not in current view"; return false; }