Add guards when closing connections so that we can call the cb
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-qt.h
index fd4952a7e16b6dd253deeeb60d6c21d87ffebdba..6ea55bcc21306f9895a65ac9f5799663f7879d13 100644 (file)
@@ -74,6 +74,7 @@ protected:
        void closeEvent(QCloseEvent *event);
 
 private slots:
+       void tryOpen();
        void animate();
        void dispatch();
        void showAbout();
@@ -84,7 +85,6 @@ private slots:
 
 private:
        DHCPCD_CONNECTION *con;
-       bool tryOpen();
        QSocketNotifier *notifier;
        QTimer *retryOpenTimer;
        QList<DhcpcdWi *> *wis;