"Preferences" button only works once.
Brought to you by:
perseo22
In Ubuntu 14.04 64bit i am able to open "Preferences" once but after it closes i can't reopen it. The following is the associated error which is generated when i click the button after it stops working.
unhandled exception in callback:
Can't call method "set_sensitive" on an undefined value at /opt/pac/lib/PACConfig.pm line 516.
*** ignoring at /opt/pac/lib/PACMain.pm line 363.
I can confirm this on version 4.5.5.1.
It happens when you close the preferences from the windows' X-mark in the upper corner, or by alt+F4 (linux mint, cinnamon).
The problem does not happen if you close it with the "Close without saving" button.
Attached patch against 4.5.5.1 fixes this, but I don't understand why the original code didn't work when this patch does. Some GTK2 voodoo? Well, it works for me.
The patch simulates clicking the "Close without saving" button when the window is closed from the window manager.