13ea65e71f
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.
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
$OpenBSD: patch-src_PrefsUnifiedDlg_cpp,v 1.1 2011/12/11 18:31:13 dcoppa Exp $
|
|
|
|
Fix "Prompt on exit" preference
|
|
(upstream git commit aea8d002b6446dcaf38db4d4ab222fcebce60948)
|
|
|
|
Fix: require restart when protocol obfuscation setting gets changed
|
|
(upstream git commit ec2e66216738f92724a37fa030a79734e0e8b1ba)
|
|
|
|
--- src/PrefsUnifiedDlg.cpp.orig Sun Oct 9 02:19:08 2011
|
|
+++ src/PrefsUnifiedDlg.cpp Fri Dec 9 16:35:56 2011
|
|
@@ -252,6 +252,7 @@ wxDialog(parent, -1, _("Preferences"),
|
|
FindWindow(IDC_MINTRAY)->Show(false);
|
|
#else
|
|
FindWindow(IDC_MACHIDEONCLOSE)->Show(false);
|
|
+ thePrefs::SetHideOnClose(false);
|
|
#endif
|
|
} else if (pages[i].m_function == PreferencesEventsTab) {
|
|
|
|
@@ -438,7 +439,7 @@ bool PrefsUnifiedDlg::TransferToWindow()
|
|
|
|
FindWindow(IDC_MACHIDEONCLOSE)->Enable(true);
|
|
FindWindow(IDC_EXIT)->Enable(!thePrefs::HideOnClose());
|
|
- if (!thePrefs::HideOnClose()) {
|
|
+ if (thePrefs::HideOnClose()) {
|
|
CastChild(IDC_EXIT, wxCheckBox)->SetValue(false);
|
|
}
|
|
|
|
@@ -612,6 +613,10 @@ void PrefsUnifiedDlg::OnOk(wxCommandEvent& WXUNUSED(ev
|
|
if (CfgChanged(IDC_EXT_CONN_IP)) {
|
|
restart_needed = true;
|
|
restart_needed_msg += _("- External connect interface changed.\n");
|
|
+ }
|
|
+ if (CfgChanged(IDC_SUPPORT_PO)) {
|
|
+ restart_needed = true;
|
|
+ restart_needed_msg += _("- Protocol obfuscation support changed.\n");
|
|
}
|
|
|
|
// Force port checking
|