QTfrontend/newnetclient.cpp
branch0.9.16
changeset 5959 2e5182c5617a
parent 5861 b102aa6a853e
child 5998 e8f44e9433f0
--- a/QTfrontend/newnetclient.cpp	Sun Sep 18 16:46:26 2011 +0200
+++ b/QTfrontend/newnetclient.cpp	Sun Sep 18 21:06:09 2011 +0200
@@ -826,7 +826,7 @@
         case 0:
         {
             bool ok = false;
-            QString newNick = QInputDialog::getText(0, tr("Nickname"), tr("Some one already uses\n your nickname %1\non the server.\nPlease pick another nickname:").arg(mynick), QLineEdit::Normal, mynick, &ok);
+            QString newNick = QInputDialog::getText(m_pGameCFGWidget, tr("Nickname"), tr("Some one already uses\n your nickname %1\non the server.\nPlease pick another nickname:").arg(mynick), QLineEdit::Normal, mynick, &ok);
 
             if (!ok || newNick.isEmpty()) {
                 Disconnect();