From a7ff509dceec30d86b2790dc123f35514047db30 Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Mon, 6 Nov 2006 06:55:31 +0000 Subject: [PATCH] Fix for linux --- CASA/gui/FindAndReplace.cs | 4 +++- CASA/gui/ImportSecrets.cs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CASA/gui/FindAndReplace.cs b/CASA/gui/FindAndReplace.cs index b8eedc67..1534fa33 100644 --- a/CASA/gui/FindAndReplace.cs +++ b/CASA/gui/FindAndReplace.cs @@ -337,8 +337,10 @@ namespace Novell.CASA.GUI void bttnReplaceAll_Clicked(object sender, EventArgs e) { - TreePath[] treePaths = tvResults.Selection.GetSelectedRows(); + TreeModel model; TreeIter iter; + TreePath[] treePaths = tvResults.Selection.GetSelectedRows(out model); + if (entryNewValue.Text == null || entryNewValue.Text.Length == 0) { diff --git a/CASA/gui/ImportSecrets.cs b/CASA/gui/ImportSecrets.cs index 30232e6b..26a56783 100644 --- a/CASA/gui/ImportSecrets.cs +++ b/CASA/gui/ImportSecrets.cs @@ -344,8 +344,10 @@ namespace Novell.CASA.GUI void DoImport() { // get selected rows - TreePath[] treePaths = tvConflicts.Selection.GetSelectedRows(); + TreeModel model; TreeIter iter; + TreePath[] treePaths = tvConflicts.Selection.GetSelectedRows(out model); + if (treePaths.Length > 0) {