From 8843a8c5ac6e74b6dd241d345e84afe7078c4ab3 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 7 May 2022 09:47:15 +0300 Subject: Autocommit at 07.05.2022 @ 09:47 --- src/Models/Event.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Models/Event.cpp') diff --git a/src/Models/Event.cpp b/src/Models/Event.cpp index f570fbf..034e4b3 100644 --- a/src/Models/Event.cpp +++ b/src/Models/Event.cpp @@ -30,5 +30,7 @@ const Date& Event::get_date() const { } int Event::compare(const Event& other) { - return name.compare(other.name); + if (hall == other.hall) + return date.compare(other.date); + return hall->compare(*other.hall); } -- cgit v1.3.1-23-gd82d