-rw-r--r-- | korganizer/mainwindow.cpp | 2 | ||||
-rw-r--r-- | korganizer/mainwindow.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index f2e1bf8..ebe761a 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1936,12 +1936,14 @@ void MainWindow::enableQuick() | |||
1936 | connect( mServerSocket, SIGNAL ( getFile(QSocket*) ), this, SLOT ( getFile(QSocket*) ) ); | 1936 | connect( mServerSocket, SIGNAL ( getFile(QSocket*) ), this, SLOT ( getFile(QSocket*) ) ); |
1937 | } | 1937 | } |
1938 | void MainWindow::sendFile(QSocket* socket) | 1938 | void MainWindow::sendFile(QSocket* socket) |
1939 | { | 1939 | { |
1940 | setCaption( i18n("Received request for file") ); | 1940 | setCaption( i18n("Received request for file") ); |
1941 | qDebug("MainWindow::sendFile(QSocket* s) "); | 1941 | qDebug("MainWindow::sendFile(QSocket* s) "); |
1942 | if ( mSyncActionDialog ) | ||
1943 | delete mSyncActionDialog; | ||
1942 | mSyncActionDialog = new QDialog ( this, "input-dialog", true ); | 1944 | mSyncActionDialog = new QDialog ( this, "input-dialog", true ); |
1943 | mSyncActionDialog->setCaption(i18n("KO/Pi - WARNING")); | 1945 | mSyncActionDialog->setCaption(i18n("KO/Pi - WARNING")); |
1944 | QLabel* label = new QLabel( i18n("Synchronizing...\nDo not use\nthis application!\n"), mSyncActionDialog ); | 1946 | QLabel* label = new QLabel( i18n("Synchronizing...\nDo not use\nthis application!\n"), mSyncActionDialog ); |
1945 | QVBoxLayout* lay = new QVBoxLayout( mSyncActionDialog ); | 1947 | QVBoxLayout* lay = new QVBoxLayout( mSyncActionDialog ); |
1946 | lay->addWidget( label); | 1948 | lay->addWidget( label); |
1947 | lay->setMargin(7); | 1949 | lay->setMargin(7); |
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 58081f6..9bb2302 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -44,13 +44,13 @@ signals: | |||
44 | void endConnect(); | 44 | void endConnect(); |
45 | private slots: | 45 | private slots: |
46 | void discardClient() | 46 | void discardClient() |
47 | { | 47 | { |
48 | QSocket* socket = (QSocket*)sender(); | 48 | QSocket* socket = (QSocket*)sender(); |
49 | delete socket; | 49 | delete socket; |
50 | emit endConnect(); | 50 | //emit endConnect(); |
51 | } | 51 | } |
52 | void readClient() | 52 | void readClient() |
53 | { | 53 | { |
54 | qDebug("readClient() "); | 54 | qDebug("readClient() "); |
55 | QSocket* socket = (QSocket*)sender(); | 55 | QSocket* socket = (QSocket*)sender(); |
56 | if ( socket->canReadLine() ) { | 56 | if ( socket->canReadLine() ) { |