C++ (Qt)bool error = (code == 1) && pathCopy.null();if (!error) error = !files[0] && !nomerMedia[0];if (error) Message("Error..");