Changeset 404dd8435cecf6f9de866b9b0d51b3db4bb1aa5c
- Timestamp:
- 09/23/08 22:52:30 (5 years ago)
- Author:
- Armin Burgmeier <armin@…>
- Parents:
- 3a148d02289248eaa372bf5e6fda1252df1bc646
- Children:
- 2c6703406e49628a79694cd0405753ff63b26880
- git-committer:
- Armin Burgmeier <armin@arbur.net> / 2008-09-23T22:52:30Z+0200
- Message:
-
FIxed a crash in the JoinDialog? when the avahi daemon is not running
2008-09-23 Armin Burgmeier <armin@…>
- src/joindialog.cpp: Fixed a crash introduced in the last version
that occurs when using the dialog without the avahi daemon being
running (Bug #266, Yannick_LM)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3a148d0
|
r404dd84
|
|
| | 1 | 2008-09-23 Armin Burgmeier <armin@0x539.de> |
| | 2 | |
| | 3 | * src/joindialog.cpp: Fixed a crash introduced in the last version |
| | 4 | that occurs when using the dialog without the avahi daemon being |
| | 5 | running (Bug #266, Yannick_LM) |
| | 6 | |
| 1 | 7 | 2008-09-11 Philipp Kern <phil@0x539.de> |
| 2 | 8 | |
-
|
r9b6eca5
|
r404dd84
|
|
| 187 | 187 | { |
| 188 | 188 | #ifdef WITH_ZEROCONF |
| 189 | | const Gtk::TreeModel::Children& children = m_session_list->children(); |
| 190 | | for(Gtk::TreeIter iter = children.begin(); |
| 191 | | iter != children.end(); ++ iter) |
| 192 | | { |
| 193 | | net6::address* addr = (*iter)[m_session_cols.address]; |
| 194 | | delete addr; |
| | 189 | if(m_session_list) |
| | 190 | { |
| | 191 | const Gtk::TreeModel::Children& children = |
| | 192 | m_session_list->children(); |
| | 193 | |
| | 194 | for(Gtk::TreeIter iter = children.begin(); |
| | 195 | iter != children.end(); ++ iter) |
| | 196 | { |
| | 197 | net6::address* addr = (*iter)[m_session_cols.address]; |
| | 198 | delete addr; |
| | 199 | } |
| 195 | 200 | } |
| 196 | 201 | #endif |
| … |
… |
|
| 210 | 215 | { |
| 211 | 216 | #ifdef WITH_ZEROCONF |
| | 217 | if(!m_session_list) |
| | 218 | return NULL; |
| | 219 | |
| 212 | 220 | // m_session_view.get_selection() is not const, therefore this function |
| 213 | 221 | // cannot be const. |
| 214 | 222 | Gtk::TreeModel::iterator iter = |
| 215 | 223 | m_session_view.get_selection()->get_selected(); |
| 216 | | if(iter != m_session_list->children().end()) |
| | 224 | if(iter && iter != m_session_list->children().end()) |
| 217 | 225 | { |
| 218 | 226 | // Use address with port info if selected from zeroconf |