Commit 1dbc0c01 authored by Vladimir Stoiakin's avatar Vladimir Stoiakin

mainwindow: fix inhibition for multiple calls

Change-Id: Ib5671686c65b716f33ed35a90caa5c652bb8e3f4
parent 323f41fe
......@@ -2081,9 +2081,9 @@ CppImpl::slotCallStatusChanged(const std::string& callId)
}
void
CppImpl::slotCallStarted(const std::string& callId)
CppImpl::slotCallStarted(const std::string& /*callId*/)
{
if (!lrc::api::Lrc::activeCalls().empty()) {
if (lrc::api::Lrc::activeCalls().size() == 1) {
GtkApplication* app = gtk_window_get_application(GTK_WINDOW(self));
if (app) {
inhibitionCookie = gtk_application_inhibit(
......@@ -2096,7 +2096,7 @@ CppImpl::slotCallStarted(const std::string& callId)
}
void
CppImpl::slotCallEnded(const std::string& callId)
CppImpl::slotCallEnded(const std::string& /*callId*/)
{
if (lrc::api::Lrc::activeCalls().empty()) {
GtkApplication* app = gtk_window_get_application(GTK_WINDOW(self));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment