Change bool/int condition
This commit is contained in:
@@ -478,8 +478,9 @@ void PlaylistManager::UpdateSummaryText() {
|
||||
// TODO: Make the plurals translatable
|
||||
summary += tracks == 1 ? tr("1 track") : tr("%1 tracks").arg(tracks);
|
||||
|
||||
if (nanoseconds)
|
||||
if (nanoseconds > 0) {
|
||||
summary += " - [ " + Utilities::WordyTimeNanosec(nanoseconds) + " ]";
|
||||
}
|
||||
|
||||
emit SummaryTextChanged(summary);
|
||||
|
||||
|
||||
@@ -880,7 +880,7 @@ void PlaylistView::mousePressEvent(QMouseEvent *event) {
|
||||
|
||||
void PlaylistView::scrollContentsBy(int dx, int dy) {
|
||||
|
||||
if (dx) {
|
||||
if (dx > 0) {
|
||||
InvalidateCachedCurrentPixmap();
|
||||
}
|
||||
cached_tree_ = QPixmap();
|
||||
|
||||
Reference in New Issue
Block a user