]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/restore/brestore.cpp
Allow closing of all tabs + close tab clicked
[bacula/bacula] / bacula / src / qt-console / restore / brestore.cpp
index c149090b276e826746a31e3a9fb24847cb90ffca..4613f1e617a2726148a910ada35f94332058922b 100644 (file)
@@ -47,6 +47,7 @@ bRestore::bRestore()
    QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
    thisitem->setIcon(0, QIcon(QString::fromUtf8(":images/browse.png")));
    m_populated = false;
+   m_closeable = false;
    m_current = NULL;
    RestoreList->setAcceptDrops(true);
 }
@@ -153,8 +154,8 @@ void bRestore::displayFiles(int64_t pathid, QString path)
    QStringList fieldlist;
    struct stat statp;
    int32_t LinkFI;
-   int nb;
-   int row=0;
+   int nb = 0;
+   int row = 0;
    Freeze frz_lst(*FileList); /* disable updating*/
    Freeze frz_rev(*FileRevisions); /* disable updating*/
    FileList->clearContents();