Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit efd35b30 authored by Thomas Eschenbacher's avatar Thomas Eschenbacher

ask for confirmation (Continue/Cancel) before doing a revert

parent df664020
xx.xx.x [xxxx-xx-xx]
* ask for confirmation (Continue/Cancel) before doing a revert
* switched on MP3 support per default
* bugfix: crash in pulseaudio playback
* fixed some untranslated menu entries of plugins (missing context)
17.08.2 [2017-10-08]
* new plugin: export to K3b project file
* reduced flicker of position widget
* bugfix: deleting labels per menu did not work
......@@ -9,7 +15,6 @@ xx.xx.x [xxxx-xx-xx]
* bugfix: compression type lookup did not work when using static functions
* bugfix: distinguish ogg/vorbis and ogg/opus by mime type
* changed license of audio samples to CC BY-SA 4.0
* fixed some untranslated menu entries of plugins (missing context)
17.04.0 [2017-03-19]
......
......@@ -876,9 +876,16 @@ int Kwave::FileContext::revert()
Kwave::FileContext::UsageGuard _keep(this);
QUrl url(signalName());
if (!url.isValid()) return -EINVAL;
if (!url.isValid() || !m_signal_manager) return -EINVAL;
return (m_signal_manager) ? m_signal_manager->loadFile(url) : -EINVAL;
if (m_signal_manager->isModified()) {
int res = Kwave::MessageBox::warningContinueCancel(m_top_widget,
i18n("This file has been modified, changes will be lost.\n"
"Do you want to continue?"));
if (res == KMessageBox::Cancel) return ECANCELED;
}
return m_signal_manager->loadFile(url);
}
//***************************************************************************
......
......@@ -31,7 +31,7 @@ namespace Kwave
{
/**
* @class ReversePlugin
* Reverts the current selection by exchanging blocks of samples
* Reverses the current selection by exchanging blocks of samples
* from front and back and reversing their content
*/
class ReversePlugin: public Kwave::Plugin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment