openbsd-ports/net/amule/patches/patch-src_PartFileConvertDlg_cpp
dcoppa 13ea65e71f Apply some bugfixing patches from upstream:
Fix: first check our bool variable, then make some calculations if
it's false. Not the other way around
(upstream git commit 41090dfe3756396a8b4496f732ab8493aa51fe6c)

Fix: disabling protocol obfuscation broke Kad and triggered assertions
(upstream git commit ec2e66216738f92724a37fa030a79734e0e8b1ba)

Fix: disable the partfile importer's 'Add' button on the remote gui
unless using a localhost connection
(upstream git commit 004f3929d91e4b81f47235060d86686fff13e2d3)

Fix: "Prompt on exit" preference
(upstream git commit aea8d002b6446dcaf38db4d4ab222fcebce60948)

Fix: require restart when protocol obfuscation setting gets changed
(upstream git commit ec2e66216738f92724a37fa030a79734e0e8b1ba)

And fix libX11 '-lX11' linkage.
2011-12-11 18:31:13 +00:00

24 lines
836 B
Plaintext

$OpenBSD: patch-src_PartFileConvertDlg_cpp,v 1.1 2011/12/11 18:31:13 dcoppa Exp $
Fix: disable the partfile importer's 'Add' button on the remote gui
unless using a localhost connection
(upstream git commit 004f3929d91e4b81f47235060d86686fff13e2d3)
--- src/PartFileConvertDlg.cpp.orig Fri Dec 9 16:38:14 2011
+++ src/PartFileConvertDlg.cpp Fri Dec 9 16:40:17 2011
@@ -94,6 +94,14 @@ CPartFileConvertDlg::CPartFileConvertDlg(wxWindow* par
m_joblist->InsertColumn(3, _("Filehash"), wxLIST_FORMAT_LEFT, 100);
SetIcon(wxICON(convert));
+
+#ifdef CLIENT_GUI
+ // There's no remote directory browser (yet), thus disable the
+ // directory selector unless we're using a localhost connection
+ if (!theApp->m_connect->IsConnectedToLocalHost()) {
+ CastChild(IDC_ADDITEM, wxButton)->Enable(false);
+ }
+#endif
}
// Static methods