private bool IsCanceled()
        {
            GUIDialogProgress pDlgProgress =
                (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS);

            if (null == pDlgProgress)
            {
                return(false);
            }

            pDlgProgress.ProgressKeys();
            if (pDlgProgress.IsCanceled)
            {
                try
                {
                    MusicDatabase.DirectExecute("rollback");
                }
                catch (Exception) {}
                return(true);
            }
            return(false);
        }