]> git.sur5r.net Git - bacula/bacula/commitdiff
display content on doubleclick only if storage and autochanger
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 11 Aug 2009 09:35:59 +0000 (11:35 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 11 Aug 2009 09:35:59 +0000 (11:35 +0200)
bacula/src/qt-console/storage/storage.cpp

index 3fce0c04551767ce5881430a1569907c2f6f2fbf..1e5cd6e8a3f10dd533a372b063d83b09b550037c 100644 (file)
@@ -334,7 +334,9 @@ void Storage::createContextMenu()
 
 void Storage::contentWindow()
 {
-   new Content(m_currentStorage);
+   if (m_currentStorage != "" && m_currentAutoChanger) { 
+      new Content(m_currentStorage);
+   }
 }
 
 /*