Fix a filesize limit bug
This commit is contained in:
parent
44055e1812
commit
76bca57047
@ -284,7 +284,7 @@ void CustomUploader::doUpload(QPixmap *pixmap) {
|
||||
}
|
||||
} break;
|
||||
}
|
||||
if (limit != -1 && data.size() > limit) {
|
||||
if (limit > 0 && data.size() > limit) {
|
||||
notifications::notify("KShare Custom Uploader " + name(), "File limit exceeded!");
|
||||
return;
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ class CustomUploader : public Uploader {
|
||||
QMap<QString, QString> types;
|
||||
|
||||
private:
|
||||
double limit;
|
||||
double limit = -1;
|
||||
QString desc;
|
||||
QString uName;
|
||||
RequestFormat format = RequestFormat::JSON;
|
||||
|
Loading…
x
Reference in New Issue
Block a user