Skip to content

Commit

Permalink
Disable upload of entire new folders.
Browse files Browse the repository at this point in the history
It requires to upload file one-by-one. At least in this version.

re #6176
  • Loading branch information
gesnerpassos committed Apr 24, 2013
1 parent 21e620b commit 6239a26
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Code/Mantid/MantidQt/API/src/RepoModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,13 @@ bool RepoModel::setData(const QModelIndex & index, const QVariant & value,
}
}else if (action == "Upload"){
QWidget * father = qobject_cast<QWidget*>(QObject::parent());
if (repo_ptr->fileInfo(path).directory){
QMessageBox::information(father,
"Not Supported",
"The current version does not support uploading recursively. Please, upload one-by-one");
return false;
};

UploadForm * form = new UploadForm(QString::fromStdString(path), father);
QSettings settings;
settings.beginGroup("Mantid/ScriptRepository");
Expand Down

0 comments on commit 6239a26

Please sign in to comment.