diff options
| author | Tomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com> | 2008-09-03 15:16:10 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com> | 2008-09-03 15:16:10 +0200 |
| commit | c977b8dd20d6f606f692efcd72e916fc020138f3 (patch) | |
| tree | d641a3fa94035a3e5003fc609899b7ba85e3c6b6 /UMain.pas | |
| parent | 7a2696850bf538fff83cc4e208287f96168a7e3c (diff) | |
| download | tuxcmd-c977b8dd20d6f606f692efcd72e916fc020138f3.tar.xz | |
Retain list selection in Connection Manager
Read/write connections on demand only
Diffstat (limited to 'UMain.pas')
| -rw-r--r-- | UMain.pas | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -4601,10 +4601,10 @@ begin ReadBookmarks; RefreshBookmarksMenu; end; - if ChangedConnMgr then begin +(* if ChangedConnMgr then begin DebugMsg(['Connection manager file changed ---> performing refresh']); ReadConnections; - end; + end; *) try InternalLock; if (ChangedMainGUI or ChangedAssoc or ChangedMounter) and (Application.MessageBox(LANGSomeOtherInstanceChanged, @@ -5890,8 +5890,10 @@ begin FConnectionManager := TFConnectionManager.Create(Self); b := FConnectionManager.Run = mbOK; - if FConnectionManager.ListView.Selected <> nil - then ConnInfo := FConnectionManager.ListView.Selected.AsPointer(0); + if FConnectionManager.ListView.Selected <> nil then begin + ConnInfo := FConnectionManager.ListView.Selected.AsPointer(0); + ConfConnMgrActiveItem := FConnectionManager.ListView.Selected.Index; + end; WriteConnections; // Save the list to the file if b then begin |
