|
@@ -60,14 +60,14 @@ void ctkXnatTreeBrowserMainWindow::loginButtonPushed()
|
|
|
{
|
|
|
if (m_Session)
|
|
|
{
|
|
|
+ ctkXnatDataModel* dataModel = m_Session->dataModel();
|
|
|
+ m_TreeModel->removeDataModel(dataModel);
|
|
|
+ ui->treeView->reset();
|
|
|
delete m_Session;
|
|
|
m_Session = 0;
|
|
|
ui->loginButton->setText("Login");
|
|
|
ui->loginLabel->setText("Disconnected");
|
|
|
ui->downloadLabel->hide();
|
|
|
-
|
|
|
- // nt: download tests... //
|
|
|
- // m_TreeModel->downloadFile (ui->treeView->selectionModel()->currentIndex(), "/Users/nicolastoussaint/Desktop/test.nii.gz");
|
|
|
}
|
|
|
else
|
|
|
{
|