aboutsummaryrefslogtreecommitdiffhomepage
path: root/qbuffers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qbuffers.cpp')
-rw-r--r--qbuffers.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/qbuffers.cpp b/qbuffers.cpp
index 51bf65f..28b54dc 100644
--- a/qbuffers.cpp
+++ b/qbuffers.cpp
@@ -227,6 +227,18 @@ Ring::find(const gchar *filename)
}
bool
+Ring::is_any_dirty(void)
+{
+ Buffer *cur;
+
+ LIST_FOREACH(cur, &head, buffers)
+ if (cur->dirty)
+ return true;
+
+ return false;
+}
+
+bool
Ring::edit(const gchar *filename)
{
bool new_in_ring = false;