mirror of
https://github.com/transmission/transmission
synced 2025-01-03 05:25:52 +00:00
parent
bd72b8c3fc
commit
0da0a55259
1 changed files with 8 additions and 4 deletions
|
@ -99,17 +99,19 @@ bool RelocateDialog::Impl::onTimer()
|
||||||
TR_GTK_BUTTONS_TYPE(CLOSE),
|
TR_GTK_BUTTONS_TYPE(CLOSE),
|
||||||
true);
|
true);
|
||||||
|
|
||||||
timer_.block();
|
|
||||||
d->signal_response().connect(
|
d->signal_response().connect(
|
||||||
[this, d](int /*response*/) mutable
|
[this, d](int /*response*/) mutable
|
||||||
{
|
{
|
||||||
timer_.unblock();
|
|
||||||
d.reset();
|
d.reset();
|
||||||
|
message_dialog_.reset();
|
||||||
|
dialog_.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
d->show();
|
d->show();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
else if (done_ == TR_LOC_DONE)
|
|
||||||
|
if (done_ == TR_LOC_DONE)
|
||||||
{
|
{
|
||||||
if (!torrent_ids_.empty())
|
if (!torrent_ids_.empty())
|
||||||
{
|
{
|
||||||
|
@ -117,11 +119,13 @@ bool RelocateDialog::Impl::onTimer()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
message_dialog_.reset();
|
||||||
dialog_.close();
|
dialog_.close();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return G_SOURCE_CONTINUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RelocateDialog::Impl::onResponse(int response)
|
void RelocateDialog::Impl::onResponse(int response)
|
||||||
|
|
Loading…
Reference in a new issue