diff --git a/C2Cap.lua b/C2Cap.lua index 57590c2..6f9ff6c 100755 --- a/C2Cap.lua +++ b/C2Cap.lua @@ -20,7 +20,7 @@ end local currSelection = CurrentSelectionArray[1] -if (currSelection.type() ~= 'LrCollection') then +if (type(currSelection) == "string" or currSelection.type() ~= 'LrCollection') then return end --Main part of this plugin. diff --git a/Info.lua b/Info.lua index 7b069a9..1adb476 100755 --- a/Info.lua +++ b/Info.lua @@ -18,6 +18,6 @@ return { LrPluginInfoProvider = 'PluginInfo.lua', LrInitPlugin = 'PluginInit.lua', - VERSION = { major=1, minor=3, revision=0, build=0, }, + VERSION = { major=1, minor=4, revision=0, build=0, }, }