]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/mainwin.cpp
Tweak some comments and formatting.
[bacula/bacula] / bacula / src / qt-console / mainwin.cpp
index eeaf966dfaa48531105a9c345ba56c9f0fc175ec..ed9852e746c0de6af710931e0c5c9161d5cab265 100644 (file)
@@ -186,9 +186,9 @@ void MainWin::createPages()
       new MediaList();
       new MediaView();
       new Storage();
-      if (m_openBrowser) {
-         new restoreTree();
-      }
+//    if (m_openBrowser) {
+//       new restoreTree();
+//    }
       if (m_openDirStat) {
          new DirStat();
       }
@@ -573,7 +573,7 @@ void MainWin::estimateButtonClicked()
 
 void MainWin::browseButtonClicked() 
 {
-   new restoreTree();
+//   new restoreTree();
 }
 
 void MainWin::statusPageButtonClicked()
@@ -651,9 +651,8 @@ void MainWin::set_statusf(const char *fmt, ...)
 {
    va_list arg_ptr;
    char buf[1000];
-   int len;
    va_start(arg_ptr, fmt);
-   len = bvsnprintf(buf, sizeof(buf), fmt, arg_ptr);
+   bvsnprintf(buf, sizeof(buf), fmt, arg_ptr);
    va_end(arg_ptr);
    set_status(buf);
 }
@@ -861,7 +860,7 @@ void MainWin::setPreferences()
 }
 
 /* Preferences dialog */
-prefsDialog::prefsDialog()
+prefsDialog::prefsDialog() : QDialog()
 {
    setupUi(this);
 }