summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-25 07:21:06 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-25 07:21:06 +0300
commit5bbc55ec38683a27d70145f7a4d48b763fbf51f5 (patch)
tree91cfd6baa8eed6e4f1f6049c9232904fb4632252 /src/ui/documentwidget.c
parenta9f42435aa4b1bb559771548895328668b396ee3 (diff)
UploadWidget: Fixes and improvements
Fixed update after undo. Line wrap long destination URLs. Don't open a new upload dialog if one is already open.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 8b4ee932..363dd357 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2819,6 +2819,9 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
2819 return wasHandled; 2819 return wasHandled;
2820 } 2820 }
2821 else if (equal_Command(cmd, "document.upload") && d == document_App()) { 2821 else if (equal_Command(cmd, "document.upload") && d == document_App()) {
2822 if (findChild_Widget(root_Widget(w), "upload")) {
2823 return iTrue; /* already open */
2824 }
2822 if (equalCase_Rangecc(urlScheme_String(d->mod.url), "gemini") || 2825 if (equalCase_Rangecc(urlScheme_String(d->mod.url), "gemini") ||
2823 equalCase_Rangecc(urlScheme_String(d->mod.url), "titan")) { 2826 equalCase_Rangecc(urlScheme_String(d->mod.url), "titan")) {
2824 iUploadWidget *upload = new_UploadWidget(); 2827 iUploadWidget *upload = new_UploadWidget();