We added a confirmation pop-up to prevent an accidental transfer of the guild leader rights. If you (intentionally or not) agreed to make another player a leader, it is considered to be your conscious decision. Unfortunately, we cannot return you the leadership, as we cannot interfere in interactions between players. You should ask this player to do it or wait for the leadership to change automatically if the current leader is inactive.