mirror of
https://github.com/jorenchik/mdemory.git
synced 2026-03-22 00:26:21 +00:00
some fixes
This commit is contained in:
@@ -273,7 +273,7 @@ void switchPage(int pageIdx);
|
||||
std::string getFilename(std::string path) {
|
||||
static const std::regex lastPathElementExp = std::regex("(.+\\/)*(.+)");
|
||||
std::smatch matches;
|
||||
auto filenameMatched = std::regex_search(path, matches, lastPathElementExp);
|
||||
std::regex_search(path, matches, lastPathElementExp);
|
||||
return matches[2].str();
|
||||
}
|
||||
|
||||
@@ -385,7 +385,6 @@ Mdem* makeMdem() {
|
||||
mdem->hFront.addWidget(&mdem->toggleVisibility);
|
||||
|
||||
// Back
|
||||
QVBoxLayout *hBack = new QVBoxLayout();
|
||||
mdem->wBack.setLayout(&mdem->hBack);
|
||||
mdem->vMdem.addWidget(&mdem->wBack);
|
||||
|
||||
@@ -563,7 +562,6 @@ void reloadMdem(std::string path) {
|
||||
MdemBuffer *buffer;
|
||||
auto filename = getFilename(path);
|
||||
if (currentMdem.compare(path) == 0) {
|
||||
buffer = currentMdemBuffer;
|
||||
currentMdem = path;
|
||||
if (buffers.contains(path)) {
|
||||
buffers.erase(path);
|
||||
|
||||
Reference in New Issue
Block a user