]> git.lyx.org Git - features.git/commitdiff
Better safe than sorry
authorPavel Sanda <sanda@lyx.org>
Fri, 30 Jan 2009 23:40:53 +0000 (23:40 +0000)
committerPavel Sanda <sanda@lyx.org>
Fri, 30 Jan 2009 23:40:53 +0000 (23:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28299 a592a061-630c-0410-9148-cb99ea01b6c8

src/VCBackend.cpp

index 664e86c16d40e628e69fd8e490a34d1f91c91875..e0c5a144b9040c93a3d1ed33645ee838857b689e 100644 (file)
@@ -45,9 +45,13 @@ int VCS::doVCCommandCall(string const & cmd, FileName const & path){
 
 int VCS::doVCCommand(string const & cmd, FileName const & path)
 {
-       owner_->setBusy(true);
+       if (owner_)
+               owner_->setBusy(true);
+
        int const ret = doVCCommandCall(cmd, path);
-       owner_->setBusy(false);
+
+       if (owner_)
+               owner_->setBusy(false);
        if (ret)
                frontend::Alert::error(_("Revision control error."),
                        bformat(_("Some problem occured while running the command:\n"