aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/channelsjoin
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/channelsjoin')
-rw-r--r--src/modules/channelsjoin/ChannelsJoinDialog.cpp4
-rw-r--r--src/modules/channelsjoin/ChannelsJoinDialog.h3
-rw-r--r--src/modules/channelsjoin/libkvichannelsjoin.cpp2
3 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/channelsjoin/ChannelsJoinDialog.cpp b/src/modules/channelsjoin/ChannelsJoinDialog.cpp
index 442bce49a..4712b691f 100644
--- a/src/modules/channelsjoin/ChannelsJoinDialog.cpp
+++ b/src/modules/channelsjoin/ChannelsJoinDialog.cpp
@@ -56,8 +56,8 @@ extern QRect g_rectChannelsJoinGeometry;
extern KVIRC_API KviRegisteredChannelDataBase * g_pRegisteredChannelDataBase;
-ChannelsJoinDialog::ChannelsJoinDialog(QWidget * par, const char * name)
-: QDialog(par)
+ChannelsJoinDialog::ChannelsJoinDialog(const char * name)
+: QDialog(g_pMainWindow)
{
setObjectName(name);
setWindowTitle(__tr2qs("Join Channels"));
diff --git a/src/modules/channelsjoin/ChannelsJoinDialog.h b/src/modules/channelsjoin/ChannelsJoinDialog.h
index da9f8182c..7e3a62965 100644
--- a/src/modules/channelsjoin/ChannelsJoinDialog.h
+++ b/src/modules/channelsjoin/ChannelsJoinDialog.h
@@ -83,11 +83,10 @@ class ChannelsJoinDialog : public QDialog
public:
/**
* \brief Constructs the channels join window
- * \param par The parent widget
* \param name The name of the window
* \return ChannelsJoinDialog
*/
- ChannelsJoinDialog(QWidget * par, const char * name);
+ ChannelsJoinDialog(const char * name);
/**
* \brief Destroys the channels join window
diff --git a/src/modules/channelsjoin/libkvichannelsjoin.cpp b/src/modules/channelsjoin/libkvichannelsjoin.cpp
index a96c3dc86..0d7debfc5 100644
--- a/src/modules/channelsjoin/libkvichannelsjoin.cpp
+++ b/src/modules/channelsjoin/libkvichannelsjoin.cpp
@@ -53,7 +53,7 @@ QRect g_rectChannelsJoinGeometry;
static bool channelsjoin_kvs_cmd_open(KviKvsModuleCommandCall * c)
{
- if(!g_pChannelsWindow)g_pChannelsWindow = new ChannelsJoinDialog(c->window()->frame(),"channelsjoin");
+ if(!g_pChannelsWindow)g_pChannelsWindow = new ChannelsJoinDialog("channelsjoin");
g_pChannelsWindow->setConsole(c->window()->console());