Add option to remove saved sever (#5368)

* Add option to remove saved sever

- Fix #4099
- Removes old method that didn't work
This commit is contained in:
Zach H 2024-12-28 19:37:49 -05:00 committed by GitHub
parent 7679546e30
commit bf63dc4ab7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 26 deletions

View file

@ -18,13 +18,6 @@ class QPushButton;
class QRadioButton;
class QVBoxLayout;
class DeleteHighlightedItemWhenShiftDelPressedEventFilter : public QObject
{
Q_OBJECT
protected:
bool eventFilter(QObject *obj, QEvent *event) override;
};
class DlgConnect : public QDialog
{
Q_OBJECT
@ -59,6 +52,7 @@ private slots:
void previousHostSelected(bool state);
void newHostSelected(bool state);
void actForgotPassword();
void actRemoveSavedServer();
void updateDisplayInfo(const QString &saveName);
void preRebuildComboBoxList();
void rebuildComboBoxList(int failure = -1);
@ -74,7 +68,7 @@ private:
QCheckBox *savePasswordCheckBox, *autoConnectCheckBox;
QComboBox *previousHosts;
QRadioButton *newHostButton, *previousHostButton;
QPushButton *btnConnect, *btnForgotPassword, *btnRefreshServers;
QPushButton *btnConnect, *btnForgotPassword, *btnRefreshServers, *btnDeleteServer;
QMap<QString, std::pair<QString, UserConnection_Information>> savedHostList;
HandlePublicServers *hps;
const QString placeHolderText = tr("Downloading...");