summaryrefslogtreecommitdiff
path: root/net/kphone/patches/patch-kphone_kcallwidget.cpp
blob: 21e6ffcbb3b0c2566e61a00313d381833d8d7e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-kphone_kcallwidget.cpp,v 1.1 2011/11/25 22:13:29 joerg Exp $

--- kphone/kcallwidget.cpp.orig	2011-11-25 19:09:05.000000000 +0000
+++ kphone/kcallwidget.cpp
@@ -89,13 +89,10 @@ void KCallTransfer::slotCancel( void )
 }
 
 KCallWidget::KCallWidget( KSipAuthentication *auth, CallAudio *callaudio, SipCall *initcall, KPhoneView *parent, const char *name )
-	: call( initcall ), phoneView( parent )
+	: QDialog( call->getSubject() == tr("Incoming call") ? NULL : parent,
+	           name, FALSE, WStyle_DialogBorder),
+	  call( initcall ),phoneView( parent )
 {
-	if( call->getSubject() == tr("Incoming call") )
-		QDialog::QDialog( NULL, name, FALSE, WStyle_DialogBorder );
-	else
-		QDialog::QDialog( parent, name, FALSE, WStyle_DialogBorder );
-		
 	sipauthentication = auth;
 	missedCalls.setAutoDelete( true );
 	receivedCalls.setAutoDelete( true );