Found the solution for this.The problem is that x-shellscript is only listed as mime-type under application, not under text, when added to text group it's opened by default editor.
ref: http://bugs.kde.org/show_bug.cgi?id=54924 Robert Lindgren wrote:
Hi All,Having problem with .sh files, in konq, whatever I set as preferred app for .sh files konq will run the file instead of opening it in an editor.The file type application for x-shellscript gives kvim as highest preference, but no go.This is of cause a problem in cervisia since when i rightclick->edit (or doubleclick) on my .sh files it will run them instead of giving me an editor.Any remedy for this is greatly appreciated. Best regards /Robert