mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 15:16:07 +01:00
2015-03-04 Fred Gleason <fredg@paravelsystems.com>
* Added support for 'scp' and 'sftp' protocols in 'rdcatch/edit_upload.cpp'. * Added support for 'scp' and 'sftp' protocols in 'rdcatch/edit_download.cpp'.
This commit is contained in:
@@ -481,7 +481,8 @@ void EditDownload::urlChangedData(const QString &str)
|
||||
{
|
||||
QUrl url(str);
|
||||
QString protocol=url.protocol();
|
||||
if((protocol=="ftp")||(protocol=="http")||(protocol=="file")) {
|
||||
if((protocol=="ftp")||(protocol=="http")||(protocol=="file")||
|
||||
(protocol=="scp")||(protocol=="sftp")) {
|
||||
edit_username_label->setEnabled(true);
|
||||
edit_username_edit->setEnabled(true);
|
||||
edit_password_label->setEnabled(true);
|
||||
@@ -556,7 +557,7 @@ void EditDownload::okData()
|
||||
RDUrl url(edit_url_edit->text());
|
||||
QString protocol=url.protocol();
|
||||
if((protocol!="ftp")&&(protocol!="http")&&(protocol!="https")&&
|
||||
(protocol!="file")) {
|
||||
(protocol!="file")&&(protocol!="scp")&&(protocol!="sftp")) {
|
||||
QMessageBox::warning(this,
|
||||
tr("Invalid URL"),tr("Unsupported URL protocol!"));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user