Fixed favorite server addition and saving.

This commit is contained in:
2016-10-09 01:23:38 +05:00
parent 1b3b7bccf8
commit e12bcdd386
3 changed files with 9 additions and 3 deletions

View File

@@ -135,7 +135,10 @@ func (m *MainWindow) addToFavorites() {
current_tab := m.tab_widget.GetTabLabelText(m.tab_widget.GetNthPage(m.tab_widget.GetCurrentPage()))
server_address := m.getIpFromServersList(current_tab)
server_address := ""
if !strings.Contains(current_tab, "Favorites") {
server_address = m.getIpFromServersList(current_tab)
}
// Getting server from database.
m.favorite_dialog = &FavoriteDialog{}