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) {