From 600cf451faa6d71dca6c97d62893df68939d8d43 Mon Sep 17 00:00:00 2001 From: craig Date: Wed, 25 Jan 2012 17:40:55 +0000 Subject: [PATCH] Cleanup --- gui/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index e708c13e4..a347a4c48 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1630,8 +1630,8 @@ void MainWindow::copyTrackInfo() foreach (const QModelIndex &idx, items) { Song s = playQueueModel.getSongByRow(usingProxy ? playQueueProxyModel.mapToSource(idx).row() : idx.row()); if (s.isEmpty()) { - if (txt != "") { - txt += "\n"; + if (!txt.isEmpty()) { + txt += QChar('\n'); } txt += s.format(); }