By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 2472

Summary: OTR icon missing in kopete message window
Product: TDE Reporter: hauke
Component: tdenetworkAssignee: Slávek Banko <slavek.banko>
Status: RESOLVED FIXED    
Severity: normal CC: bugwatch, hauke, michele.calgaro, slavek.banko
Priority: P5    
Version: R14.0.1 [Trinity]   
Hardware: Other   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 2696    
Attachments: Toolbar with OTR icon
Fix OtrlChatInterface visibility

Description hauke 2015-07-05 09:00:44 CDT
Hi,

the padlock icon to start an OTR session is not shown in the kopete message window.

To make it appear, I need to disable the OTR plugin in the modules settings and activate it again.

Would be nice, if the icon is always shown, if the OTR plugin is enabled :-)
Comment 1 hauke 2015-07-05 09:05:48 CDT
Created attachment 2525 [details]
Toolbar with OTR icon

The screenshot show the toolbar after disabling the OTR plugin and activating it. Before the padlock icon is missing.
Comment 2 Michele Calgaro 2016-04-23 08:00:39 CDT
Hi Hauke,
I would like to take a look at this bug. I have been trying to get the padlock icon to appear in the toolbar, but whatever I did it never showed. Is there some special action required to do so?

I have kotepe-otr installed, I tried to disable/enable the otr plugin as you mentioned, but nothing changed. The padlock icon is not even available in the toolbar configuration dialog.

Any suggestion? Do I need some special configuration options? Thanks
Comment 3 hauke 2016-04-26 17:23:17 CDT
Hi Michele,

I remove the hook on the OTR plugin, click on "Accept" [1], add the hook on the OTR plugin again and click on "Accept". Then the OTR padlock icon is shown on my system.

[1] I have the German version of TDE. The button is labeled "Anwenden" and maybe it is not labeled "Accept" in the English version.
Comment 4 Michele Calgaro 2016-10-11 06:31:35 CDT
By mere chance, I understood why I could not display the lock icon.
During the launch of kopete, I get a message that says it can not load the _otr plugin ;-)
Now that I know that, I think i will be able to proceed with this bug sooner or later.
Comment 5 Slávek Banko 2018-05-14 19:05:12 CDT
Created attachment 2847 [details]
Fix OtrlChatInterface visibility

I noticed in the ~/.xsession-errors report:

The Trinity ltdl loader was unable to dlopen() the shared library '/opt/trinity/lib/trinity/kopete_otr.so' : '/opt/trinity/lib/libkotr.so.0: undefined symbol: _ZTV17OtrlChatInterface'

Using ld /opt/trinity/lib/trinity/kopete_otr.so I received the report:

/opt/trinity/lib/libkotr.so.0: undefined reference to `vtable for OtrlChatInterface'

I tested successfully that the attached patch is a solution to this problem.
Comment 6 Michele Calgaro 2018-05-16 01:23:54 CDT
Thanks Slavek,
I will test the patch as well and let you know. 
I had spent quite some time trying to fix this bug and now I see there is such a simple and elegant solution :-) Well done.
I bang my head on the wall :-(
Comment 7 Michele Calgaro 2018-05-16 02:34:36 CDT
Slavek, I confirmed the patch is working here too.
You can push and close the bug.
Comment 8 Slávek Banko 2018-05-16 09:20:43 CDT
Fixed in GIT hash bbbc7862 (master) and 32bfe7fe (r14.0.x).