summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2011-11-15 15:06:31 +0000
committerAlex Merry <alex.merry@cs.ox.ac.uk>2011-11-15 15:06:31 +0000
commit6faa8f13d3b948ddb71e1f57f1c988cc1da9cafe (patch)
tree0ee615fb345e7d731ebbeb6d9cd2002e66ce44ea
parent95e1bcf90674eeb24f257c3ef2ea610d41215d9d (diff)
Get rid of null receiver warnings
-rw-r--r--window.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/window.cpp b/window.cpp
index 8dbebf9..a0f0661 100644
--- a/window.cpp
+++ b/window.cpp
@@ -141,7 +141,9 @@ void Window::clear()
void Window::setPlayer(const QString& dbusAddress)
{
- clear();
+ if (!m_currentPlayer.isEmpty()) {
+ clear();
+ }
m_currentPlayer = dbusAddress;