~jdong/ktorrent/ktorrent.debian

« back to all changes in this revision

Viewing changes to plugins/webinterface/webinterfaceprefpage.cpp

  • Committer: John Dong
  • Date: 2006-11-24 05:43:21 UTC
  • mfrom: (946.1.28)
  • Revision ID: john.dong@gmail.com-20061124054321-dnouhtgvqt3k3lc8
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 ***************************************************************************/
20
20
 
21
21
#include "webinterfaceprefpage.h"
 
22
#include "webinterfaceplugin.h"
22
23
namespace kt
23
24
{
24
25
 
25
 
        WebInterfacePrefPage::WebInterfacePrefPage()
 
26
        WebInterfacePrefPage::WebInterfacePrefPage(WebInterfacePlugin* plugin)
26
27
                : PrefPageInterface(i18n("WebInterface"), i18n("WebInterface Options"),
27
28
                                                KGlobal::iconLoader()->loadIcon("toggle_log",KIcon::NoGroup))
28
29
        {
29
30
                m_widget = 0;
 
31
                w_plugin=plugin;
30
32
        }
31
33
 
32
34
 
36
38
        bool WebInterfacePrefPage::apply()
37
39
        {
38
40
                if(m_widget)
39
 
                        return m_widget->apply();
40
 
                
 
41
                        m_widget->apply();
 
42
                w_plugin->preferencesUpdated();
41
43
                return true;
42
44
        }
43
45