summaryrefslogtreecommitdiff
path: root/plugins/shotwell-publishing/PiwigoPublishing.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-19 05:08:19 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-19 05:08:19 +0200
commitb076314018e4b53d745823754a26eb6fb73a2801 (patch)
treea834cd64830068f988fda00b25578578ee096363 /plugins/shotwell-publishing/PiwigoPublishing.vala
parentb67c4ba420286470899a63ff8b2fbbfdc17d082c (diff)
New upstream version 0.24.1upstream/0.24.1
Diffstat (limited to 'plugins/shotwell-publishing/PiwigoPublishing.vala')
-rw-r--r--plugins/shotwell-publishing/PiwigoPublishing.vala8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/shotwell-publishing/PiwigoPublishing.vala b/plugins/shotwell-publishing/PiwigoPublishing.vala
index c3a1bd0..63623ea 100644
--- a/plugins/shotwell-publishing/PiwigoPublishing.vala
+++ b/plugins/shotwell-publishing/PiwigoPublishing.vala
@@ -1309,7 +1309,7 @@ internal class PublishingOptionsPane : Spit.Publishing.DialogPane, Object {
!(
create_new_radio.get_active() &&
(
- category_name != "" ||
+ category_name == "" ||
category_already_exists(search_name)
)
)
@@ -1342,8 +1342,12 @@ internal class PublishingOptionsPane : Spit.Publishing.DialogPane, Object {
bool isfirst = true;
if (publishables != null) {
foreach (Spit.Publishing.Publishable pub in publishables) {
- string cur = pub.get_param_string(
+ string? cur = pub.get_param_string(
Spit.Publishing.Publishable.PARAM_STRING_EVENTCOMMENT);
+ if (cur == null) {
+ continue;
+ }
+
if (isfirst) {
common = cur;
isfirst = false;