]> git.lyx.org Git - lyx.git/blob - src/support/path.C
fix typo that put too many include paths for most people
[lyx.git] / src / support / path.C
1 #include <config.h>
2
3 #ifdef __GNUG__
4 #pragma implementation
5 #endif
6
7 #include "path.h"
8
9 int Path::pop()
10 {
11         if (popped_) {
12                 // should throw an exception
13                 // throw logical_error();
14                 // The use of WriteFSAlerrt makes this impossible
15                 // to inline.
16                 //Alert::err_alert(_("Error: Dir already popped: "),
17                 //           pushedDir_);
18                 return 0;
19         }
20         if (lyx::chdir(pushedDir_)) {
21                 // should throw an exception
22                 // throw DirChangeError();
23                 // The use of Alert::err_alert makes this impossible
24                 // to inline.
25                 //Alert::err_alert(
26                 //      _("Error: Could not change to directory: "),
27                 //      pushedDir_);
28         }
29         popped_ = true;
30         return 0;
31 }