mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-13 15:17:44 +02: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:
parent
f9022eb4a7
commit
dc9375c1d5
@ -14802,3 +14802,8 @@
|
||||
'SAS USI (3 digit)'.
|
||||
* Added an 'SAS USI (2 digit)' swticher driver in
|
||||
'ripcd/sasusi2digit.cpp' and 'ripcd/sasusi2digit.h'.
|
||||
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'.
|
||||
|
@ -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;
|
||||
|
@ -495,7 +495,8 @@ void EditUpload::urlChangedData(const QString &str)
|
||||
{
|
||||
QUrl url(str);
|
||||
QString protocol=url.protocol().lower();
|
||||
if((protocol=="ftp")||(protocol=="file")) {
|
||||
if((protocol=="ftp")||(protocol=="file")||
|
||||
(protocol=="scp")||(protocol=="sftp")) {
|
||||
edit_username_label->setEnabled(true);
|
||||
edit_username_edit->setEnabled(true);
|
||||
edit_password_label->setEnabled(true);
|
||||
@ -577,7 +578,8 @@ void EditUpload::okData()
|
||||
}
|
||||
RDUrl url(edit_url_edit->text());
|
||||
QString protocol=url.protocol();
|
||||
if((protocol!="ftp")&&(protocol!="file")) {
|
||||
if((protocol!="ftp")&&(protocol!="file")&&
|
||||
(protocol!="scp")&&(protocol!="sftp")) {
|
||||
QMessageBox::warning(this,
|
||||
tr("Invalid URL"),tr("Unsupported URL protocol!"));
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user