1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 07:43:03 +01:00

Don't allow changing device while transmission is active

This commit is contained in:
mannol 2014-03-08 02:09:11 +01:00
parent c678d41709
commit 6c2ae4ad24

View File

@ -530,6 +530,11 @@ void cmd_change_device(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (
goto on_error;
}
if ( ASettins.ttas ) { /* Transmission is active */
error_str = "Cannot change device while active transmission";
goto on_error;
}
_devices type;
if ( strcmp(argv[1], "in") == 0 ) /* Input devices */