summaryrefslogtreecommitdiffstats
path: root/src/kchmmainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kchmmainwindow.cpp')
-rw-r--r--src/kchmmainwindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kchmmainwindow.cpp b/src/kchmmainwindow.cpp
index 9246961..7494cf9 100644
--- a/src/kchmmainwindow.cpp
+++ b/src/kchmmainwindow.cpp
@@ -840,8 +840,8 @@ void KCHMMainWindow::setupSignals( )
#if defined(HAVE_SIGACTION)
struct sigaction sa;
memset ((char *)&sa, 0, sizeof(sa));
- sigemptyset (&sa.sa_tqmask);
- sigaddset (&sa.sa_tqmask, SIGCHLD);
+ sigemptyset (&sa.sa_mask);
+ sigaddset (&sa.sa_mask, SIGCHLD);
#ifdef SA_RESTART
sa.sa_flags = SA_RESTART;
@@ -1028,10 +1028,10 @@ void KCHMMainWindow::slotLocateInContentWindow( )
if ( treeitem )
{
- KCHMIndTocItem * itemtqparent = treeitem;
+ KCHMIndTocItem * itemparent = treeitem;
- while ( (itemtqparent = (KCHMIndTocItem*) itemtqparent->tqparent()) != 0 )
- itemtqparent->setOpen(true);
+ while ( (itemparent = (KCHMIndTocItem*) itemparent->parent()) != 0 )
+ itemparent->setOpen(true);
m_contentsWindow->setCurrentItem (treeitem);
m_contentsWindow->ensureItemVisible (treeitem);
@@ -1167,9 +1167,9 @@ void KCHMMainWindow::locateInContentTree( const TQString & url )
if ( treeitem )
{
- KCHMIndTocItem * itemtqparent = treeitem;
- while ( (itemtqparent = (KCHMIndTocItem*) itemtqparent->tqparent()) != 0 )
- itemtqparent->setOpen(true);
+ KCHMIndTocItem * itemparent = treeitem;
+ while ( (itemparent = (KCHMIndTocItem*) itemparent->parent()) != 0 )
+ itemparent->setOpen(true);
m_contentsWindow->setCurrentItem (treeitem);
m_contentsWindow->ensureItemVisible (treeitem);