Changeset 33a2e92fee5218cb81599e4ef421e7d4514a2f4a
- Timestamp:
- 04/15/07 00:39:47 (6 years ago)
- Author:
- Armin Burgmeier <armin@…>
- Parents:
- 73098a354d7a40c8f1a0dab4f91501303586d330
- Children:
- f2e79fb7e99e21e1ae673f2d2d310e1ba1c77fb5
- git-committer:
- Armin Burgmeier <armin@0x539.de> / 2007-04-14T22:39:47Z+0000
- Message:
-
2007-04-14 Armin Burgmeier <armin@…>
- src/joindialog.cpp: Only access the currently selected row to set
the content of the host and port entries when there actually is a
selected row.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r73098a3
|
r33a2e92f
|
|
| | 1 | 2007-04-14 Armin Burgmeier <armin@0x539.de> |
| | 2 | |
| | 3 | * src/joindialog.cpp: Only access the currently selected row to set |
| | 4 | the content of the host and port entries when there actually is a |
| | 5 | selected row. |
| | 6 | |
| 1 | 7 | 2007-04-14 Armin Burgmeier <armin@0x539.de> |
| 2 | 8 | |
-
|
r73098a3
|
r33a2e92f
|
|
| 244 | 244 | void Gobby::JoinDialog::on_change() |
| 245 | 245 | { |
| 246 | | Gtk::TreeModel::iterator iter = |
| 247 | | m_session_view.get_selection()->get_selected(); |
| 248 | | m_ent_host.set_text((*iter)[m_session_cols.host]); |
| 249 | | m_ent_port.set_value((*iter)[m_session_cols.port]); |
| | 246 | if(m_session_view.get_selection()->count_selected_rows() > 0) |
| | 247 | { |
| | 248 | Gtk::TreeModel::iterator iter = |
| | 249 | m_session_view.get_selection()->get_selected(); |
| | 250 | |
| | 251 | m_ent_host.set_text((*iter)[m_session_cols.host]); |
| | 252 | m_ent_port.set_value((*iter)[m_session_cols.port]); |
| | 253 | } |
| 250 | 254 | } |
| 251 | 255 | |